summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-10-10 04:00:24 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-11 07:54:26 +0200
commit9047fa5d32942acbc017d2c2e2d0af3e6ce833ed (patch)
treeddd1613503b2b6499dd3bd75f5816493c54f1f51 /ipc
parentMerge branch 'net-dsa-bcm_sf2-Couple-of-fixes' (diff)
downloadlinux-9047fa5d32942acbc017d2c2e2d0af3e6ce833ed.tar.xz
linux-9047fa5d32942acbc017d2c2e2d0af3e6ce833ed.zip
phy: phy-ocelot-serdes: fix return value check in serdes_probe()
In case of error, the function syscon_node_to_regmap() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 51f6b410fc22 ("phy: add driver for Microsemi Ocelot SerDes muxing") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Quentin Schulz <quentin.schulz@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions