From 91e065d8f2354f25246d5c6a0ee270ab74c43dd8 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Thu, 1 Feb 2018 19:06:10 +0100 Subject: dm unstripe: remove superfluous module init error path message Signed-off-by: Heinz Mauelshagen Reviewed-by: Scott Bauer Signed-off-by: Mike Snitzer --- drivers/md/dm-unstripe.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'drivers/md/dm-unstripe.c') diff --git a/drivers/md/dm-unstripe.c b/drivers/md/dm-unstripe.c index 28ce7e57d981..cf7ac073d840 100644 --- a/drivers/md/dm-unstripe.c +++ b/drivers/md/dm-unstripe.c @@ -195,13 +195,7 @@ static struct target_type unstripe_target = { static int __init dm_unstripe_init(void) { - int r; - - r = dm_register_target(&unstripe_target); - if (r < 0) - DMERR("target registration failed"); - - return r; + return dm_register_target(&unstripe_target); } static void __exit dm_unstripe_exit(void) -- cgit v1.2.3