diff options
| author | Pan Bian <bianpan2016@163.com> | 2017-11-12 23:38:09 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-11-14 21:34:57 +0900 |
| commit | 97438abcfb80656d4aedaca21b8ff8db4fcc93a1 (patch) | |
| tree | 7a68728edbe01300bbcffe3205fd4afd1acbe726 /tools/perf/scripts/python | |
| parent | net: phy: realtek: fix RTL8211F interrupt mode (diff) | |
| download | linux-97438abcfb80656d4aedaca21b8ff8db4fcc93a1.tar.gz linux-97438abcfb80656d4aedaca21b8ff8db4fcc93a1.zip | |
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 <bianpan2016@163.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
