mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 15:55:28 -04:00
Staging: lustre: lustre: mgc: 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
5ed57d6dc6
commit
8482727897
@@ -510,8 +510,6 @@ static void do_requeue(struct config_llog_data *cld)
|
||||
|
||||
static int mgc_requeue_thread(void *data)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
CDEBUG(D_MGC, "Starting requeue thread\n");
|
||||
|
||||
/* Keep trying failed locks periodically */
|
||||
@@ -592,7 +590,7 @@ static int mgc_requeue_thread(void *data)
|
||||
complete(&rq_exit);
|
||||
|
||||
CDEBUG(D_MGC, "Ending requeue thread\n");
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Add a cld to the list to requeue. Start the requeue thread if needed.
|
||||
@@ -1055,8 +1053,6 @@ static int mgc_import_event(struct obd_device *obd,
|
||||
struct obd_import *imp,
|
||||
enum obd_import_event event)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
LASSERT(imp->imp_obd == obd);
|
||||
CDEBUG(D_MGC, "import event %#x\n", event);
|
||||
|
||||
@@ -1090,7 +1086,7 @@ static int mgc_import_event(struct obd_device *obd,
|
||||
CERROR("Unknown import event %#x\n", event);
|
||||
LBUG();
|
||||
}
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user