]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memstick: remove unused field from state struct
authorMaxim Levitsky <maximlevitsky@gmail.com>
Thu, 25 Oct 2012 01:14:34 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Oct 2012 04:15:04 +0000 (15:15 +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 */