projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56fbbb4
)
igb: misc cleanup to combine one if statement
author
Alexander Duyck
<
[email protected]
>
Fri, 13 Feb 2009 14:45:17 +0000
(14:45 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 16 Feb 2009 07:56:02 +0000
(23:56 -0800)
This patch combines a pair of if statements into one.
Signed-off-by: Alexander Duyck <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
CC: Ben Hutchings <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/igb/igb_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/igb/igb_main.c
b/drivers/net/igb/igb_main.c
index c259013fe7b2425aef3287d94a19cade7f89aaca..18bc5700faf508bcde29db28ca2105bb1748edb0 100644
(file)
--- a/
drivers/net/igb/igb_main.c
+++ b/
drivers/net/igb/igb_main.c
@@
-3133,9
+3133,9
@@
static int igb_xmit_frame_ring_adv(struct sk_buff *skb,
if (tso)
tx_flags |= IGB_TX_FLAGS_TSO;
- else if (igb_tx_csum_adv(adapter, tx_ring, skb, tx_flags)
)
-
if (skb->ip_summed == CHECKSUM_PARTIAL
)
-
tx_flags |= IGB_TX_FLAGS_CSUM;
+ else if (igb_tx_csum_adv(adapter, tx_ring, skb, tx_flags)
&&
+
(skb->ip_summed == CHECKSUM_PARTIAL)
)
+ tx_flags |= IGB_TX_FLAGS_CSUM;
igb_tx_queue_adv(adapter, tx_ring, tx_flags,
igb_tx_map_adv(adapter, tx_ring, skb, first),