]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: lustre: lustre: mdc: mdc_request: Removed useless variable
authorTina Johnson <tinajohnson.1234@gmail.com>
Sun, 14 Sep 2014 13:06:38 +0000 (18:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Sep 2014 17:02:19 +0000 (10:02 -0700)
Variable rc is initialised and returned by the function without modifying.
Hence replaced rc with it's initial value in the return statement and
removed the variable.

Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_request.c

index 780cb00a831b8db807564f9f0176ddd02a5770db..14e1ba1675f6e84228b9a5ab24081ba955d55f9c 100644 (file)
@@ -2500,8 +2500,6 @@ static int mdc_init_ea_size(struct obd_export *exp, int easize,
 
 static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
 {
-       int rc = 0;
-
        switch (stage) {
        case OBD_CLEANUP_EARLY:
                break;
@@ -2517,7 +2515,7 @@ static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
                mdc_llog_finish(obd);
                break;
        }
-       return rc;
+       return 0;
 }
 
 static int mdc_cleanup(struct obd_device *obd)