summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-01-14 21:29:18 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-15 08:28:15 -0800
commitf5ba6772f226be0266f95642c8162493246d3b79 (patch)
tree5d666af7eb9b1ac614733687e3947c5729998c45 /drivers/net
parenta5f67a04d998b0b6e4beb1de8f1247dd93ac1ff4 (diff)
downloadop-kernel-dev-f5ba6772f226be0266f95642c8162493246d3b79.zip
op-kernel-dev-f5ba6772f226be0266f95642c8162493246d3b79.tar.gz
bnx2x: Missing brackets
Calculation bug due to missing brackets Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2x_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index d2350dd..a755fea 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -2920,7 +2920,7 @@ static irqreturn_t bnx2x_msix_sp_int(int irq, void *dev_instance)
#define ADD_64(s_hi, a_hi, s_lo, a_lo) \
do { \
s_lo += a_lo; \
- s_hi += a_hi + (s_lo < a_lo) ? 1 : 0; \
+ s_hi += a_hi + ((s_lo < a_lo) ? 1 : 0); \
} while (0)
/* difference = minuend - subtrahend */
OpenPOWER on IntegriCloud