diff options
author | 2020-07-27 19:02:13 +0800 | |
---|---|---|
committer | 2020-07-28 17:48:20 -0700 | |
commit | 2f45f7a13e99ef2d05ef3afecaee30f314c9b8b2 (patch) | |
tree | b08d8fcf8053b0237b761acc3908a6cf96942093 /tools/perf/scripts/python | |
parent | net: stmmac: Remove WAKE_MAGIC if HW shows no pmt_magic_frame (diff) | |
download | linux-dev-2f45f7a13e99ef2d05ef3afecaee30f314c9b8b2.tar.xz linux-dev-2f45f7a13e99ef2d05ef3afecaee30f314c9b8b2.zip |
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')
0 files changed, 0 insertions, 0 deletions