Skip to content

Commit

Permalink
bnx2x: Missing brackets
Browse files Browse the repository at this point in the history
Calculation bug due to missing brackets

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Jan 15, 2009
1 parent a5f67a0 commit f5ba677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f5ba677

Please sign in to comment.