From: Maxim Levitsky Date: Fri, 12 Oct 2012 04:22:42 +0000 (+1100) Subject: memstick: remove unused field from state struct X-Git-Tag: next-20121012~1^2~72 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=975a525f4f1bef9ade1458c09570258d540d67e1;p=karo-tx-linux.git memstick: remove unused field from state struct Oops, I forgot that I have thet field there already. Just save memory by not allocating it. Signed-off-by: Maxim Levitsky Cc: Geert Uytterhoeven Cc: Alex Dubov Cc: Jens Axboe Signed-off-by: Andrew Morton --- diff --git a/drivers/memstick/core/ms_block.h b/drivers/memstick/core/ms_block.h index 6b5b83e90643..a2b276519d58 100644 --- a/drivers/memstick/core/ms_block.h +++ b/drivers/memstick/core/ms_block.h @@ -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 */