diff options
author | Joe Perches <joe@perches.com> | 2009-12-03 02:58:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-03 16:18:01 -0500 |
commit | 8e95a2026f3b43f7c3d676adaccd2de9532e8dcc (patch) | |
tree | 3733318168cd512480b6db58c5c16d1c8847f0b7 /drivers/net/via-velocity.c | |
parent | 3454f835837609d60b29a266e3bd9d701073b060 (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/via-velocity.c')
-rw-r--r-- | drivers/net/via-velocity.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index d4eac2a14427..4ceb441f2687 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
@@ -895,8 +895,8 @@ static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status) | |||
895 | 895 | ||
896 | /* | 896 | /* |
897 | Check if new status is consisent with current status | 897 | Check if new status is consisent with current status |
898 | if (((mii_status & curr_status) & VELOCITY_AUTONEG_ENABLE) | 898 | if (((mii_status & curr_status) & VELOCITY_AUTONEG_ENABLE) || |
899 | || (mii_status==curr_status)) { | 899 | (mii_status==curr_status)) { |
900 | vptr->mii_status=mii_check_media_mode(vptr->mac_regs); | 900 | vptr->mii_status=mii_check_media_mode(vptr->mac_regs); |
901 | vptr->mii_status=check_connection_type(vptr->mac_regs); | 901 | vptr->mii_status=check_connection_type(vptr->mac_regs); |
902 | VELOCITY_PRT(MSG_LEVEL_INFO, "Velocity link no change\n"); | 902 | VELOCITY_PRT(MSG_LEVEL_INFO, "Velocity link no change\n"); |
@@ -1132,8 +1132,8 @@ static void velocity_set_multi(struct net_device *dev) | |||
1132 | writel(0xffffffff, ®s->MARCAM[0]); | 1132 | writel(0xffffffff, ®s->MARCAM[0]); |
1133 | writel(0xffffffff, ®s->MARCAM[4]); | 1133 | writel(0xffffffff, ®s->MARCAM[4]); |
1134 | rx_mode = (RCR_AM | RCR_AB | RCR_PROM); | 1134 | rx_mode = (RCR_AM | RCR_AB | RCR_PROM); |
1135 | } else if ((dev->mc_count > vptr->multicast_limit) | 1135 | } else if ((dev->mc_count > vptr->multicast_limit) || |
1136 | || (dev->flags & IFF_ALLMULTI)) { | 1136 | (dev->flags & IFF_ALLMULTI)) { |
1137 | writel(0xffffffff, ®s->MARCAM[0]); | 1137 | writel(0xffffffff, ®s->MARCAM[0]); |
1138 | writel(0xffffffff, ®s->MARCAM[4]); | 1138 | writel(0xffffffff, ®s->MARCAM[4]); |
1139 | rx_mode = (RCR_AM | RCR_AB); | 1139 | rx_mode = (RCR_AM | RCR_AB); |
@@ -1936,8 +1936,8 @@ static int velocity_tx_srv(struct velocity_info *vptr, u32 status) | |||
1936 | * Look to see if we should kick the transmit network | 1936 | * Look to see if we should kick the transmit network |
1937 | * layer for more work. | 1937 | * layer for more work. |
1938 | */ | 1938 | */ |
1939 | if (netif_queue_stopped(vptr->dev) && (full == 0) | 1939 | if (netif_queue_stopped(vptr->dev) && (full == 0) && |
1940 | && (!(vptr->mii_status & VELOCITY_LINK_FAIL))) { | 1940 | (!(vptr->mii_status & VELOCITY_LINK_FAIL))) { |
1941 | netif_wake_queue(vptr->dev); | 1941 | netif_wake_queue(vptr->dev); |
1942 | } | 1942 | } |
1943 | return works; | 1943 | return works; |
@@ -2584,8 +2584,8 @@ static netdev_tx_t velocity_xmit(struct sk_buff *skb, | |||
2584 | /* | 2584 | /* |
2585 | * Handle hardware checksum | 2585 | * Handle hardware checksum |
2586 | */ | 2586 | */ |
2587 | if ( (dev->features & NETIF_F_IP_CSUM) | 2587 | if ((dev->features & NETIF_F_IP_CSUM) && |
2588 | && (skb->ip_summed == CHECKSUM_PARTIAL)) { | 2588 | (skb->ip_summed == CHECKSUM_PARTIAL)) { |
2589 | const struct iphdr *ip = ip_hdr(skb); | 2589 | const struct iphdr *ip = ip_hdr(skb); |
2590 | if (ip->protocol == IPPROTO_TCP) | 2590 | if (ip->protocol == IPPROTO_TCP) |
2591 | td_ptr->tdesc1.TCR |= TCR0_TCPCK; | 2591 | td_ptr->tdesc1.TCR |= TCR0_TCPCK; |