netxen: Fix Unlikely(x) > y
Subsystems (2)
PATCH 1/1 netxen: Fix Unlikely(x) > y
The closing parenthesis was not on the right location.
Signed-off-by Roel Kluin <[email protected]>
---
This was intended, I think?
drivers/net/netxen/netxen_nic_main.c +1 -1
@@ -1714,7 +1714,7 @@ netxen_nic_xmit_frame(struct sk_buff *skb, struct net_device *netdev)/* 4 fragments per cmd des */ no_of_desc = (frag_count +3 ) >>2 ; -if (unlikely (no_of_desc +2 ) >netxen_tx_avail (tx_ring)) { +if (unlikely (no_of_desc +2 >netxen_tx_avail (tx_ring))) {netif_stop_queue (netdev);return NETDEV_TX_BUSY ; }
Oh sure, that was a typo. Thanks for catching it.
Acked-by Dhananjay Phadke <[email protected]>
-----Original Message-----
From: Roel Kluin [mailto:[email protected]]
Sent: Tuesday, October 06, 2009 06:24
To: Dhananjay Phadke; [email protected]; Andrew Morton
Subject: [PATCH] netxen: Fix Unlikely(x) > y
The closing parenthesis was not on the right location.
Signed-off-by Roel Kluin <[email protected]>
---
This was intended, I think?
drivers/net/netxen/netxen_nic_main.c +1 -1
@@ -1714,7 +1714,7 @@ netxen_nic_xmit_frame(struct sk_buff *skb, struct net_device *netdev)/* 4 fragments per cmd des */ no_of_desc = (frag_count +3 ) >>2 ; -if (unlikely (no_of_desc +2 ) >netxen_tx_avail (tx_ring)) { +if (unlikely (no_of_desc +2 >netxen_tx_avail (tx_ring))) {netif_stop_queue (netdev);return NETDEV_TX_BUSY ; }
From: Dhananjay Phadke <[email protected]>
Date: Tue, 6 Oct 2009 22:34:39 -0700
Quoted 3 lines
Oh sure, that was a typo. Thanks for catching it.
Acked-by Dhananjay Phadke <[email protected]>
Applied, thanks everyone.