diff options
| author | YueHaibing <[email protected]> | 2019-02-16 10:59:35 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-18 16:34:20 -0800 |
| commit | 780feae7eb69388c8d8b661cda6706b0dc0f642b (patch) | |
| tree | 7f6d6e470ae6ca79bc6b4da678652055be696a7e /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
| parent | 31ef5b0eef2afb2df23728f2b88f0c245617f258 (diff) | |
mdio_bus: Fix PTR_ERR() usage after initialization to constant
Fix coccinelle warning:
./drivers/net/phy/mdio_bus.c:51:5-12: ERROR: PTR_ERR applied after initialization to constant on line 44
./drivers/net/phy/mdio_bus.c:52:5-12: ERROR: PTR_ERR applied after initialization to constant on line 44
fix this by using IS_ERR before PTR_ERR
Fixes: bafbdd527d56 ("phylib: Add device reset GPIO support")
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions