Skip to contentSkip to conversation

staging: style fix for octeon/ethernet-tx.c

PATCH In review Jacob Kiefer 2 participants 2 messages Jul 10, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: style fix for octeon/ethernet-tx.c

From: Jacob Kiefer <[email protected]>

Style fix for octeon/ethernet-tx.c

---
 drivers/staging/octeon/ethernet-tx.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/staging/octeon/ethernet-tx.c +6 -4
index 7c1c1b0..e2df041 100644
@@ -396,10 +396,12 @@ dont_put_skbuff_in_hw:
 
 	/* Check if we can use the hardware checksumming */
 	if ((skb->protocol == htons(ETH_P_IP)) &&
-	    (ip_hdr(skb)->version == 4) && (ip_hdr(skb)->ihl == 5) &&
-	    ((ip_hdr(skb)->frag_off == 0) || (ip_hdr(skb)->frag_off == htons(1 << 14)))
-	    && ((ip_hdr(skb)->protocol == IPPROTO_TCP)
-		|| (ip_hdr(skb)->protocol == IPPROTO_UDP))) {
+	    (ip_hdr(skb)->version == 4) &&
+	    (ip_hdr(skb)->ihl == 5) &&
+	    ((ip_hdr(skb)->frag_off == 0) ||
+	     (ip_hdr(skb)->frag_off == htons(1 << 14))) &&
+	    ((ip_hdr(skb)->protocol == IPPROTO_TCP) ||
+	     (ip_hdr(skb)->protocol == IPPROTO_UDP))) {
 		/* Use hardware checksum calc */
 		pko_command.s.ipoffp1 = sizeof(struct ethhdr) + 1;
 	}
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 1 line · Jacob Kiefer

From: Jacob Kiefer <[email protected]>

No need to mention this From: as it will come from the email header.

Quoted 2 lines

Style fix for octeon/ethernet-tx.c

Please mention which style you have fixed.

regards
sudip