diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2020-07-27 19:02:13 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-28 17:48:20 -0700 |
commit | 2f45f7a13e99ef2d05ef3afecaee30f314c9b8b2 (patch) | |
tree | b08d8fcf8053b0237b761acc3908a6cf96942093 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1057d685c6eb4ef5dbc03f97ff25da8ca2418a86 (diff) |
net: stmmac: Move device_can_wakeup() check earlier in set_wol
If !device_can_wakeup(), there's no need to futher check. And return
-EOPNOTSUPP rather than -EINVAL if !device_can_wakeup().
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions