Commit eb967126 authored by Tina Johnson's avatar Tina Johnson Committed by Greg Kroah-Hartman

Staging: lustre: lustre: mdc: mdc_request: Removed useless variable

Variable rc is initialised and returned by the function without modifying.
Hence replaced rc with it's initial value in the return statement and
removed the variable.
Signed-off-by: default avatarTina Johnson <tinajohnson.1234@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 727543d6
...@@ -2500,8 +2500,6 @@ static int mdc_init_ea_size(struct obd_export *exp, int easize, ...@@ -2500,8 +2500,6 @@ static int mdc_init_ea_size(struct obd_export *exp, int easize,
static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage) static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
{ {
int rc = 0;
switch (stage) { switch (stage) {
case OBD_CLEANUP_EARLY: case OBD_CLEANUP_EARLY:
break; break;
...@@ -2517,7 +2515,7 @@ static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage) ...@@ -2517,7 +2515,7 @@ static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
mdc_llog_finish(obd); mdc_llog_finish(obd);
break; break;
} }
return rc; return 0;
} }
static int mdc_cleanup(struct obd_device *obd) static int mdc_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