aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPan Bian <[email protected]>2017-11-12 23:38:09 +0800
committerDavid S. Miller <[email protected]>2017-11-14 21:34:57 +0900
commit97438abcfb80656d4aedaca21b8ff8db4fcc93a1 (patch)
tree7a68728edbe01300bbcffe3205fd4afd1acbe726 /tools/perf/scripts/python/net_dropmonitor.py
parent3697d058b08d5b874f0253de173ef72e5d648f9a (diff)
net: dsa: lan9303: correctly check return value of devm_gpiod_get_optional
Function devm_gpiod_get_optional() returns an ERR_PTR on failure. Its return value should not be validated by a NULL check. Instead, use IS_ERR. Signed-off-by: Pan Bian <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions