staging: lustre: Delete an unnecessary variable initialisation in class_register_type()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 5 Nov 2015 09:55:16 +0000 (10:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
The variable "rc" will be eventually set to an error return code in the
class_register_type() function.
Thus let us omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/genops.c

index 0896656..26f54f9 100644 (file)
@@ -155,7 +155,7 @@ int class_register_type(struct obd_ops *dt_ops, struct md_ops *md_ops,
                        struct lu_device_type *ldt)
 {
        struct obd_type *type;
-       int rc = 0;
+       int rc;
 
        /* sanity check */
        LASSERT(strnlen(name, CLASS_MAX_NAME) < CLASS_MAX_NAME);