Libertas: coding style cleanup in ethtool.c
authorBing Zhao <bzhao@marvell.com>
Tue, 10 Nov 2009 02:04:12 +0000 (18:04 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Nov 2009 21:21:15 +0000 (16:21 -0500)
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/ethtool.c

index 039b555e4d7630336f4ea9750a796566f9255cdf..6efa3882d0a609ade15c7533502fdb5ea50113f5 100644 (file)
@@ -175,10 +175,14 @@ static int lbs_ethtool_set_wol(struct net_device *dev,
        if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY))
                return -EOPNOTSUPP;
 
-       if (wol->wolopts & WAKE_UCAST) criteria |= EHS_WAKE_ON_UNICAST_DATA;
-       if (wol->wolopts & WAKE_MCAST) criteria |= EHS_WAKE_ON_MULTICAST_DATA;
-       if (wol->wolopts & WAKE_BCAST) criteria |= EHS_WAKE_ON_BROADCAST_DATA;
-       if (wol->wolopts & WAKE_PHY)   criteria |= EHS_WAKE_ON_MAC_EVENT;
+       if (wol->wolopts & WAKE_UCAST)
+               criteria |= EHS_WAKE_ON_UNICAST_DATA;
+       if (wol->wolopts & WAKE_MCAST)
+               criteria |= EHS_WAKE_ON_MULTICAST_DATA;
+       if (wol->wolopts & WAKE_BCAST)
+               criteria |= EHS_WAKE_ON_BROADCAST_DATA;
+       if (wol->wolopts & WAKE_PHY)
+               criteria |= EHS_WAKE_ON_MAC_EVENT;
 
        return lbs_host_sleep_cfg(priv, criteria, (struct wol_config *)NULL);
 }