From: Maxim Levitsky <maximlevitsky@gmail•com>
To: Geert Uytterhoeven <geert@linux-m68k•org>
Cc: Andrew Morton <akpm@linux-foundation•org>,
linux-kernel@vger•kernel.org, Alex Dubov <oakad@yahoo•com>,
Linux-Next <linux-next@vger•kernel.org>,
Jens Axboe <axboe@kernel•dk>,
Maxim Levitsky <maximlevitsky@gmail•com>
Subject: [PATCH 1/2] memstick: remove unused field from state struct.
Date: Mon, 8 Oct 2012 17:36:21 +0200 [thread overview]
Message-ID: <1349710582-5410-2-git-send-email-maximlevitsky@gmail.com> (raw)
In-Reply-To: <1349710582-5410-1-git-send-email-maximlevitsky@gmail.com>
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>
---
drivers/memstick/core/ms_block.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/memstick/core/ms_block.h b/drivers/memstick/core/ms_block.h
index 6b5b83e..a2b2765 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 */
--
1.7.9.5
next prev parent reply other threads:[~2012-10-08 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1348652941-31899-1-git-send-email-maximlevitsky@gmail.com>
[not found] ` <1348652941-31899-3-git-send-email-maximlevitsky@gmail.com>
2012-09-29 17:20 ` [PATCH 2/2] memstick: add support for legacy memorysticks Geert Uytterhoeven
2012-10-01 20:24 ` Maxim Levitsky
2012-10-08 15:36 ` Fixes for ms_block Maxim Levitsky
2012-10-08 15:36 ` Maxim Levitsky [this message]
2012-10-08 15:36 ` [PATCH 2/2] memstick: ms_block: fix complile issue Maxim Levitsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349710582-5410-2-git-send-email-maximlevitsky@gmail.com \
--to=maximlevitsky@gmail$(echo .)com \
--cc=akpm@linux-foundation$(echo .)org \
--cc=axboe@kernel$(echo .)dk \
--cc=geert@linux-m68k$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=oakad@yahoo$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox