]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: fix ptr_ret.cocci warnings
authorkernel test robot <lkp@intel.com>
Thu, 9 Jul 2020 16:06:18 +0000 (00:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2020 20:09:51 +0000 (13:09 -0700)
commitfe53edb8408da2f06949446fca1c7235609dbcb7
tree6b0c81d364a485f86844f7f3680f4f7b4ff8f8d8
parent78ca176ed6ff3b5068d43dd2bbb67a1c0ad560d7
net: phy: mscc: fix ptr_ret.cocci warnings

drivers/net/phy/mscc/mscc_ptp.c:1496:1-3: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Fixes: cc18c9fbfca3 ("net: phy: mscc: timestamping and PHC support")
CC: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc_ptp.c