Commit e588f1bf authored by Heena Sirwani's avatar Heena Sirwani Committed by Greg Kroah-Hartman

Staging: lustre: lustre: lov: 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 84827278
...@@ -847,7 +847,6 @@ int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg) ...@@ -847,7 +847,6 @@ int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
static int lov_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage) static int lov_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
{ {
int rc = 0;
struct lov_obd *lov = &obd->u.lov; struct lov_obd *lov = &obd->u.lov;
switch (stage) { switch (stage) {
...@@ -865,7 +864,7 @@ static int lov_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage) ...@@ -865,7 +864,7 @@ static int lov_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
break; break;
} }
return rc; return 0;
} }
static int lov_cleanup(struct obd_device *obd) static int lov_cleanup(struct obd_device *obd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment