Commit 5ed57d6d authored by Heena Sirwani's avatar Heena Sirwani Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: lustre: lmv: Removed 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 f09b372b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2310,7 +2310,6 @@ static int lmv_unlink(struct obd_export *exp, struct md_op_data *op_data,
static int lmv_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
{
	struct lmv_obd *lmv = &obd->u.lmv;
	int rc = 0;

	switch (stage) {
	case OBD_CLEANUP_EARLY:
@@ -2324,7 +2323,7 @@ static int lmv_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
	default:
		break;
	}
	return rc;
	return 0;
}

static int lmv_get_info(const struct lu_env *env, struct obd_export *exp,