net: phy: dp83867: fix simple_return.cocci warnings
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 24 Jul 2015 06:16:10 +0000 (14:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 07:59:16 +0000 (00:59 -0700)
commit9267135cca60674321139626f49077a4937d730e
tree5f9859756488a36861acaa5fbaa99840f0fc6e64
parentb469139e81ca8265fb4797c007f8d3338f4191a5
net: phy: dp83867: fix simple_return.cocci warnings

drivers/net/phy/dp83867.c:126:1-4: WARNING: end returns can be simpified
drivers/net/phy/dp83867.c:74:5-8: WARNING: end returns can be simpified if tested value is negative or 0

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.

Generated by: scripts/coccinelle/misc/simple_return.cocci

CC: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c