mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
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: Heena Sirwani <heenasirwani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8482727897
commit
e588f1bf8e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user