Skip to content

Commit

Permalink
i2o: fix simple_return.cocci warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kbuild test robot authored and gregkh committed Apr 30, 2015
1 parent 3ede1b6 commit 41d98f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/staging/i2o/iop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 41d98f5

Please sign in to comment.