Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4f869d9 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid5: remove pointless NULL test.



In the 'abort' branch of run(), 'conf' cannot possibly be NULL,
so remove the test.

Reported-by: default avatarZdenek Kabelac <zdenek.kabelac@gmail.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent ce550c20
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -4942,10 +4942,8 @@ static int run(mddev_t *mddev)
	return 0;
abort:
	md_unregister_thread(&mddev->thread);
	if (conf) {
	print_raid5_conf(conf);
	free_conf(conf);
	}
	mddev->private = NULL;
	printk(KERN_ALERT "md/raid:%s: failed to run raid set.\n", mdname(mddev));
	return -EIO;