diff options
author | NeilBrown <neilb@suse.de> | 2009-09-23 04:16:31 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-09-23 04:16:31 -0400 |
commit | f28f4e272876317626cd399288b4030b627c4b91 (patch) | |
tree | 6d6903a86337419f5b3b1dd93bf23e2e0302f9f5 /drivers | |
parent | 3fa841d7e7266f6fcc1b3885b905f5153ba897d8 (diff) |
md: remove unnecessary memset from multipath.
Recent commit bbba809e96539672f775a3d70102657d05816a5b
replaced mempool_create_kzalloc_pool with mempool_create_kmalloc_pool
plus a memset.
This memset is not needed (and we didn't need kzalloc in the first
place).
Ever field of the allocated structure (struct multipath_bh) is
initialised immediately except retry_list, and memset does not
initial a list_head anyway.
To remove the memset.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/multipath.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index dcbf9d35928b..ee7646f974a0 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -150,7 +150,6 @@ static int multipath_make_request (struct request_queue *q, struct bio * bio) | |||
150 | } | 150 | } |
151 | 151 | ||
152 | mp_bh = mempool_alloc(conf->pool, GFP_NOIO); | 152 | mp_bh = mempool_alloc(conf->pool, GFP_NOIO); |
153 | memset(mp_bh, 0, sizeof(*mp_bh)); | ||
154 | 153 | ||
155 | mp_bh->master_bio = bio; | 154 | mp_bh->master_bio = bio; |
156 | mp_bh->mddev = mddev; | 155 | mp_bh->mddev = mddev; |