diff options
author | Alexey Brodkin <[email protected]> | 2015-09-09 18:01:08 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-09-09 17:07:43 -0700 |
commit | dfc50fcaad574e5c8c85cbc83eca1426b2413fa4 (patch) | |
tree | ee257cfea4f0d54ec756c7d98b0cb671e7a1b566 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1f0ca208531a152e1da6aa43d095fe0b2039d9ca (diff) |
stmmac: fix check for phydev being open
Current check of phydev with IS_ERR(phydev) may make not much sense
because of_phy_connect() returns NULL on failure instead of error value.
Still for checking result of phy_connect() IS_ERR() makes perfect sense.
So let's use combined check IS_ERR_OR_NULL() that covers both cases.
Cc: Sergei Shtylyov <[email protected]>
Cc: Giuseppe Cavallaro <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: David Miller <[email protected]>
Signed-off-by: Alexey Brodkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions