]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
memstick: remove unused field from state struct
authorMaxim Levitsky <maximlevitsky@gmail.com>
Fri, 12 Oct 2012 04:22:42 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 15 Oct 2012 01:21:56 +0000 (12:21 +1100)
Oops, I forgot that I have thet field there already.  Just save memory by
not allocating it.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/memstick/core/ms_block.h

index 6b5b83e90643830ab1cad696369f4027521c8700..a2b276519d58763abffa0490840b08c95e68b5f0 100644 (file)
@@ -162,7 +162,6 @@ struct msb_data {
        struct workqueue_struct         *io_queue;
        bool                            io_queue_stopped;
        struct work_struct              io_work;
-       struct scatterlist              prealloc_sg[MS_BLOCK_MAX_SEGS+1];
        bool                            card_dead;
 
        /* Media properties */
@@ -194,7 +193,7 @@ struct msb_data {
 
        /* Preallocated buffers */
        unsigned char                   *block_buffer;
-       struct scatterlist              sg[MS_BLOCK_MAX_SEGS+1];
+       struct scatterlist              prealloc_sg[MS_BLOCK_MAX_SEGS+1];
 
 
        /* handler's local data */