Skip to content

Commit

Permalink
ENGR00320120 net: fec: remove unnecessary condition for magic packet set
Browse files Browse the repository at this point in the history
Remove unnecessary condition for magic packet setting.

Signed-off-by: Fugang Duan  <B38611@freescale.com>
  • Loading branch information
Fugang Duan authored and Nitin Garg committed Aug 27, 2014
1 parent bb7ccb6 commit 75c407f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/freescale/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75c407f

Please sign in to comment.