summaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-11-11 15:13:47 +0800
committerDavid S. Miller <davem@davemloft.net>2019-11-11 22:00:53 -0800
commit1d4639567d970de087a893521f7f50a32740b595 (patch)
tree381b327fceaa64f8d86295b507a1aa13cab7cb0c /net/smc
parenta71a29f50de1ef97ab55c151a1598eb12dde379d (diff)
downloadlinux-1d4639567d970de087a893521f7f50a32740b595.tar.bz2
mdio_bus: Fix PTR_ERR applied after initialization to constant
Fix coccinelle warning: ./drivers/net/phy/mdio_bus.c:67:5-12: ERROR: PTR_ERR applied after initialization to constant on line 62 ./drivers/net/phy/mdio_bus.c:68:5-12: ERROR: PTR_ERR applied after initialization to constant on line 62 Fix this by using IS_ERR before PTR_ERR Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 71dd6c0dff51 ("net: phy: add support for reset-controller") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions