commit | 2f45f7a13e99ef2d05ef3afecaee30f314c9b8b2 | [log] [tgz] |
---|---|---|
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | Mon Jul 27 19:02:13 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 28 17:48:20 2020 -0700 |
tree | b08d8fcf8053b0237b761acc3908a6cf96942093 | |
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>