aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2018-10-10 02:00:24 +0000
committerDavid S. Miller <[email protected]>2018-10-10 22:54:26 -0700
commit9047fa5d32942acbc017d2c2e2d0af3e6ce833ed (patch)
treeddd1613503b2b6499dd3bd75f5816493c54f1f51 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent302d20e57ac91d7a15e3da28d40b85cd5bd5bb7f (diff)
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 <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions