Commit 41f8d410 authored by Heena Sirwani's avatar Heena Sirwani Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: lustre: osc: Remove variable that is not very useful.



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: default avatarHeena Sirwani <heenasirwani@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 114114a2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3217,8 +3217,6 @@ int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg)

static int osc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
{
	int rc = 0;

	switch (stage) {
	case OBD_CLEANUP_EARLY: {
		struct obd_import *imp;
@@ -3253,7 +3251,7 @@ static int osc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
		break;
		}
	}
	return rc;
	return 0;
}

int osc_cleanup(struct obd_device *obd)