aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea
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/ehea
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/ehea')
-rw-r--r--drivers/net/ehea/ehea_main.c20
-rw-r--r--drivers/net/ehea/ehea_qmr.c4
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 7f8fcc2fa748..7b62336e6736 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -189,8 +189,8 @@ static void ehea_update_firmware_handles(void)
189 for (k = 0; k < EHEA_MAX_PORTS; k++) { 189 for (k = 0; k < EHEA_MAX_PORTS; k++) {
190 struct ehea_port *port = adapter->port[k]; 190 struct ehea_port *port = adapter->port[k];
191 191
192 if (!port || (port->state != EHEA_PORT_UP) 192 if (!port || (port->state != EHEA_PORT_UP) ||
193 || (num_ports == 0)) 193 (num_ports == 0))
194 continue; 194 continue;
195 195
196 for (l = 0; 196 for (l = 0;
@@ -657,8 +657,8 @@ static int get_skb_hdr(struct sk_buff *skb, void **iphdr,
657static void ehea_proc_skb(struct ehea_port_res *pr, struct ehea_cqe *cqe, 657static void ehea_proc_skb(struct ehea_port_res *pr, struct ehea_cqe *cqe,
658 struct sk_buff *skb) 658 struct sk_buff *skb)
659{ 659{
660 int vlan_extracted = (cqe->status & EHEA_CQE_VLAN_TAG_XTRACT) 660 int vlan_extracted = ((cqe->status & EHEA_CQE_VLAN_TAG_XTRACT) &&
661 && pr->port->vgrp; 661 pr->port->vgrp);
662 662
663 if (use_lro) { 663 if (use_lro) {
664 if (vlan_extracted) 664 if (vlan_extracted)
@@ -1389,8 +1389,8 @@ out:
1389 1389
1390int ehea_rem_smrs(struct ehea_port_res *pr) 1390int ehea_rem_smrs(struct ehea_port_res *pr)
1391{ 1391{
1392 if ((ehea_rem_mr(&pr->send_mr)) 1392 if ((ehea_rem_mr(&pr->send_mr)) ||
1393 || (ehea_rem_mr(&pr->recv_mr))) 1393 (ehea_rem_mr(&pr->recv_mr)))
1394 return -EIO; 1394 return -EIO;
1395 else 1395 else
1396 return 0; 1396 return 0;
@@ -2031,8 +2031,8 @@ static void ehea_xmit2(struct sk_buff *skb, struct net_device *dev,
2031 write_ip_start_end(swqe, skb); 2031 write_ip_start_end(swqe, skb);
2032 2032
2033 if (iph->protocol == IPPROTO_UDP) { 2033 if (iph->protocol == IPPROTO_UDP) {
2034 if ((iph->frag_off & IP_MF) 2034 if ((iph->frag_off & IP_MF) ||
2035 || (iph->frag_off & IP_OFFSET)) 2035 (iph->frag_off & IP_OFFSET))
2036 /* IP fragment, so don't change cs */ 2036 /* IP fragment, so don't change cs */
2037 swqe->tx_control &= ~EHEA_SWQE_TCP_CHECKSUM; 2037 swqe->tx_control &= ~EHEA_SWQE_TCP_CHECKSUM;
2038 else 2038 else
@@ -2077,8 +2077,8 @@ static void ehea_xmit3(struct sk_buff *skb, struct net_device *dev,
2077 write_tcp_offset_end(swqe, skb); 2077 write_tcp_offset_end(swqe, skb);
2078 2078
2079 } else if (iph->protocol == IPPROTO_UDP) { 2079 } else if (iph->protocol == IPPROTO_UDP) {
2080 if ((iph->frag_off & IP_MF) 2080 if ((iph->frag_off & IP_MF) ||
2081 || (iph->frag_off & IP_OFFSET)) 2081 (iph->frag_off & IP_OFFSET))
2082 /* IP fragment, so don't change cs */ 2082 /* IP fragment, so don't change cs */
2083 swqe->tx_control |= EHEA_SWQE_CRC 2083 swqe->tx_control |= EHEA_SWQE_CRC
2084 | EHEA_SWQE_IMM_DATA_PRESENT; 2084 | EHEA_SWQE_IMM_DATA_PRESENT;
diff --git a/drivers/net/ehea/ehea_qmr.c b/drivers/net/ehea/ehea_qmr.c
index bc7c5b7abb88..18d405f78c0f 100644
--- a/drivers/net/ehea/ehea_qmr.c
+++ b/drivers/net/ehea/ehea_qmr.c
@@ -837,8 +837,8 @@ static u64 ehea_reg_mr_section(int top, int dir, int idx, u64 *pt,
837 hret = ehea_h_register_rpage_mr(adapter->handle, mr->handle, 0, 837 hret = ehea_h_register_rpage_mr(adapter->handle, mr->handle, 0,
838 0, pt_abs, EHEA_MAX_RPAGE); 838 0, pt_abs, EHEA_MAX_RPAGE);
839 839
840 if ((hret != H_SUCCESS) 840 if ((hret != H_SUCCESS) &&
841 && (hret != H_PAGE_REGISTERED)) { 841 (hret != H_PAGE_REGISTERED)) {
842 ehea_h_free_resource(adapter->handle, mr->handle, 842 ehea_h_free_resource(adapter->handle, mr->handle,
843 FORCE_FREE); 843 FORCE_FREE);
844 ehea_error("register_rpage_mr failed"); 844 ehea_error("register_rpage_mr failed");