diff options
author | Tina Johnson <tinajohnson.1234@gmail.com> | 2014-09-14 18:36:38 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-14 10:02:19 -0700 |
commit | eb9671261d02fa322f0b77a30442198ff05e564c (patch) | |
tree | f1f356c2de8da73ba17eeb2f0ddd86623de24361 /drivers/staging/lustre | |
parent | staging: lustre: fix pointer whitespace style (diff) | |
download | linux-dev-eb9671261d02fa322f0b77a30442198ff05e564c.tar.xz linux-dev-eb9671261d02fa322f0b77a30442198ff05e564c.zip |
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: Tina Johnson <tinajohnson.1234@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r-- | drivers/staging/lustre/lustre/mdc/mdc_request.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c b/drivers/staging/lustre/lustre/mdc/mdc_request.c index 780cb00a831b..14e1ba1675f6 100644 --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c +++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c @@ -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) { - int rc = 0; - switch (stage) { case OBD_CLEANUP_EARLY: break; @@ -2517,7 +2515,7 @@ static int mdc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage) mdc_llog_finish(obd); break; } - return rc; + return 0; } static int mdc_cleanup(struct obd_device *obd) |