]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: Remove unneeded use of IS_ERR_VALUE() macro
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 12 Aug 2015 15:10:23 +0000 (12:10 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Aug 2015 23:45:46 +0000 (16:45 -0700)
commit6558a848c6ec42b4bbc180aa7999ed1af9bcf70a
treebdbebab3a7b4d41081d50400b49c730cb11823c4
parent24a9b2bd4454aafcef72af4f3e454b1d28d10559
net: fec: Remove unneeded use of IS_ERR_VALUE() macro

There is no need to use the IS_ERR_VALUE() macro for checking
the return value from pm_runtime_* functions.

Just do a simple negative test instead.

The semantic patch that makes this change is available
in scripts/coccinelle/api/pm_runtime.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c