From: kbuild test robot Date: Thu, 30 Apr 2015 13:03:04 +0000 (+0800) Subject: i2o: fix simple_return.cocci warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=41d98f584f03660324f078fd812342a1e75edd6d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git i2o: fix simple_return.cocci warnings drivers/staging/i2o/iop.c:777:1-3: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Alan Cox Signed-off-by: Fengguang Wu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/i2o/iop.c b/drivers/staging/i2o/iop.c index c88df551bbb0..3c2379097586 100644 --- a/drivers/staging/i2o/iop.c +++ b/drivers/staging/i2o/iop.c @@ -777,11 +777,7 @@ static int i2o_iop_online(struct i2o_controller *c) /* In READY state */ osm_debug("%s: Attempting to enable...\n", c->name); - rc = i2o_iop_enable(c); - if (rc) - return rc; - - return 0; + return i2o_iop_enable(c); } /**