md: simplify get_bitmap_file now that "file" is zeroed.
authorBenjamin Randazzo <benjamin@randazzo.fr>
Sat, 25 Jul 2015 14:36:50 +0000 (16:36 +0200)
committerNeilBrown <neilb@suse.com>
Mon, 3 Aug 2015 07:12:44 +0000 (17:12 +1000)
commit25eafe1a813681849ad3fb9effdfdce3e1b4335a
treede118361423a3140511be6c5aa820c6d482f1260
parent49895bcc7e566ba455eb2996607d6fbd3447ce16
md: simplify get_bitmap_file now that "file" is zeroed.

There is no point assigning '\0' to file->pathname[0] as
file is now zeroed out, so remove that branch and
simplify the code.

[Original patch combined this with the change to use
 kzalloc.  I split the two so that the change to kzalloc
 is easier to backport. - neilb]

Signed-off-by: Benjamin Randazzo <benjamin@randazzo.fr>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c