Parcourir la source

dm unstripe: remove superfluous module init error path message

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Reviewed-by: Scott Bauer <Scott.Bauer@intel.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Heinz Mauelshagen il y a 7 ans
Parent
commit
91e065d8f2
1 fichiers modifiés avec 1 ajouts et 7 suppressions
  1. 1 7
      drivers/md/dm-unstripe.c

+ 1 - 7
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)