]> git.baikalelectronics.ru Git - kernel.git/commit
md: remove unnecessary memset from multipath.
authorNeilBrown <neilb@suse.de>
Wed, 23 Sep 2009 08:16:31 +0000 (18:16 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 23 Sep 2009 08:16:31 +0000 (18:16 +1000)
commitc7803cb4ea3925c09f7229a04b28105401a920cb
tree6d6903a86337419f5b3b1dd93bf23e2e0302f9f5
parent2b1b8b80b61d1c0624bf7e18cc8a6b8fc3b30e60
md: remove unnecessary memset from multipath.

Recent commit 793ef6fd81a66a01e17ba8d86a5915b8e2812ee6
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>
drivers/md/multipath.c