summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2014-06-26 17:27:09 +0800
committerFugang Duan <b38611@freescale.com>2014-06-27 08:26:17 +0800
commit3a6fbd579951ca38b1cf527ceeefd43e85cd5667 (patch)
tree979072ecfc0fe46f451003fecbaa36b951a79730
parent3956c33579f79eede57f58f64136bd551d18357e (diff)
ENGR00320120 net: fec: remove unnecessary condition for magic packet set
Remove unnecessary condition for magic packet setting. Signed-off-by: Fugang Duan <B38611@freescale.com>
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 1c4f4d50d574..185f7f2d71b4 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -2359,8 +2359,7 @@ fec_enet_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)
{
struct fec_enet_private *fep = netdev_priv(ndev);
- if (!(fep->wol_flag & FEC_WOL_HAS_MAGIC_PACKET) &&
- wol->wolopts != 0)
+ if (!(fep->wol_flag & FEC_WOL_HAS_MAGIC_PACKET))
return -EINVAL;
if (wol->wolopts & ~WAKE_MAGIC)