Skip to content

Commit

Permalink
Staging: lustre: lustre: mdc: mdc_request: Removed useless variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tina Johnson authored and Greg Kroah-Hartman committed Sep 14, 2014
1 parent 727543d commit eb96712
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/lustre/lustre/mdc/mdc_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit eb96712

Please sign in to comment.