]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Staging: lustre: lustre: lov: Remove variable that is not very useful.
authorHeena Sirwani <heenasirwani@gmail.com>
Tue, 7 Oct 2014 11:57:18 +0000 (17:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:10 +0000 (10:29 +0800)
The following patch removes a variable that is not very useful using
coccinelle.
The semantic patch used was:
@@
identifier ret;
@@

-int ret = 0;
 ... when != ret
     when strict
-return ret;
+return 0;

Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_obd.c

index 94dfd64bd283208a76872227a6304288eda3e560..71ad166e2cbc55831847b3b8d50c5289d5614330 100644 (file)
@@ -847,7 +847,6 @@ out:
 
 static int lov_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
 {
-       int rc = 0;
        struct lov_obd *lov = &obd->u.lov;
 
        switch (stage) {
@@ -865,7 +864,7 @@ static int lov_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
                break;
        }
 
-       return rc;
+       return 0;
 }
 
 static int lov_cleanup(struct obd_device *obd)