aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skge.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-12-03 02:58:21 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-03 16:18:01 -0500
commit8e95a2026f3b43f7c3d676adaccd2de9532e8dcc (patch)
tree3733318168cd512480b6db58c5c16d1c8847f0b7 /drivers/net/skge.c
parent3454f835837609d60b29a266e3bd9d701073b060 (diff)
drivers/net: Move && and || to end of previous line
Only files where David Miller is the primary git-signer. wireless, wimax, ixgbe, etc are not modified. Compile tested x86 allyesconfig only Not all files compiled (not x86 compatible) Added a few > 80 column lines, which I ignored. Existing checkpatch complaints ignored. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r--drivers/net/skge.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 34b4e7d500da..379a3dc00163 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -238,8 +238,8 @@ static int skge_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
238 struct skge_port *skge = netdev_priv(dev); 238 struct skge_port *skge = netdev_priv(dev);
239 struct skge_hw *hw = skge->hw; 239 struct skge_hw *hw = skge->hw;
240 240
241 if ((wol->wolopts & ~wol_supported(hw)) 241 if ((wol->wolopts & ~wol_supported(hw)) ||
242 || !device_can_wakeup(&hw->pdev->dev)) 242 !device_can_wakeup(&hw->pdev->dev))
243 return -EOPNOTSUPP; 243 return -EOPNOTSUPP;
244 244
245 skge->wol = wol->wolopts; 245 skge->wol = wol->wolopts;
@@ -576,9 +576,10 @@ static void skge_get_pauseparam(struct net_device *dev,
576{ 576{
577 struct skge_port *skge = netdev_priv(dev); 577 struct skge_port *skge = netdev_priv(dev);
578 578
579 ecmd->rx_pause = (skge->flow_control == FLOW_MODE_SYMMETRIC) 579 ecmd->rx_pause = ((skge->flow_control == FLOW_MODE_SYMMETRIC) ||
580 || (skge->flow_control == FLOW_MODE_SYM_OR_REM); 580 (skge->flow_control == FLOW_MODE_SYM_OR_REM));
581 ecmd->tx_pause = ecmd->rx_pause || (skge->flow_control == FLOW_MODE_LOC_SEND); 581 ecmd->tx_pause = (ecmd->rx_pause ||
582 (skge->flow_control == FLOW_MODE_LOC_SEND));
582 583
583 ecmd->autoneg = ecmd->rx_pause || ecmd->tx_pause; 584 ecmd->autoneg = ecmd->rx_pause || ecmd->tx_pause;
584} 585}
@@ -2779,8 +2780,8 @@ static netdev_tx_t skge_xmit_frame(struct sk_buff *skb,
2779 /* This seems backwards, but it is what the sk98lin 2780 /* This seems backwards, but it is what the sk98lin
2780 * does. Looks like hardware is wrong? 2781 * does. Looks like hardware is wrong?
2781 */ 2782 */
2782 if (ipip_hdr(skb)->protocol == IPPROTO_UDP 2783 if (ipip_hdr(skb)->protocol == IPPROTO_UDP &&
2783 && hw->chip_rev == 0 && hw->chip_id == CHIP_ID_YUKON) 2784 hw->chip_rev == 0 && hw->chip_id == CHIP_ID_YUKON)
2784 control = BMU_TCP_CHECK; 2785 control = BMU_TCP_CHECK;
2785 else 2786 else
2786 control = BMU_UDP_CHECK; 2787 control = BMU_UDP_CHECK;
@@ -2948,8 +2949,8 @@ static void genesis_set_multicast(struct net_device *dev)
2948 else { 2949 else {
2949 memset(filter, 0, sizeof(filter)); 2950 memset(filter, 0, sizeof(filter));
2950 2951
2951 if (skge->flow_status == FLOW_STAT_REM_SEND 2952 if (skge->flow_status == FLOW_STAT_REM_SEND ||
2952 || skge->flow_status == FLOW_STAT_SYMMETRIC) 2953 skge->flow_status == FLOW_STAT_SYMMETRIC)
2953 genesis_add_filter(filter, pause_mc_addr); 2954 genesis_add_filter(filter, pause_mc_addr);
2954 2955
2955 for (i = 0; list && i < count; i++, list = list->next) 2956 for (i = 0; list && i < count; i++, list = list->next)
@@ -2972,8 +2973,8 @@ static void yukon_set_multicast(struct net_device *dev)
2972 struct skge_hw *hw = skge->hw; 2973 struct skge_hw *hw = skge->hw;
2973 int port = skge->port; 2974 int port = skge->port;
2974 struct dev_mc_list *list = dev->mc_list; 2975 struct dev_mc_list *list = dev->mc_list;
2975 int rx_pause = (skge->flow_status == FLOW_STAT_REM_SEND 2976 int rx_pause = (skge->flow_status == FLOW_STAT_REM_SEND ||
2976 || skge->flow_status == FLOW_STAT_SYMMETRIC); 2977 skge->flow_status == FLOW_STAT_SYMMETRIC);
2977 u16 reg; 2978 u16 reg;
2978 u8 filter[8]; 2979 u8 filter[8];
2979 2980