Commit 0c35bd4723e4a39ba2da4c13a22cb97986ee10c8 ("md: fix problems with freeing private data after ->run failure") removed the check for the result of md_integrity_register, so we don't need to store it anymore, so return it directly. Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@xxxxxxxxx> --- drivers/md/raid0.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 42b0287104bd..e72255464c09 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -431,9 +431,7 @@ static int raid0_run(struct mddev *mddev) dump_zones(mddev); - ret = md_integrity_register(mddev); - - return ret; + return md_integrity_register(mddev); } static void raid0_free(struct mddev *mddev, void *priv) -- 2.21.0