md/raid5: remove pointless NULL test.
In the 'abort' branch of run(), 'conf' cannot possibly be NULL, so remove the test. Reported-by: Zdenek Kabelac <zdenek.kabelac@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
ce550c2059
commit
e4f869d9de
1 changed files with 2 additions and 4 deletions
|
@ -4942,10 +4942,8 @@ static int run(mddev_t *mddev)
|
||||||
return 0;
|
return 0;
|
||||||
abort:
|
abort:
|
||||||
md_unregister_thread(&mddev->thread);
|
md_unregister_thread(&mddev->thread);
|
||||||
if (conf) {
|
|
||||||
print_raid5_conf(conf);
|
print_raid5_conf(conf);
|
||||||
free_conf(conf);
|
free_conf(conf);
|
||||||
}
|
|
||||||
mddev->private = NULL;
|
mddev->private = NULL;
|
||||||
printk(KERN_ALERT "md/raid:%s: failed to run raid set.\n", mdname(mddev));
|
printk(KERN_ALERT "md/raid:%s: failed to run raid set.\n", mdname(mddev));
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
Loading…
Add table
Reference in a new issue