]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Fix bug when saving statistics.
authorPatrick Rabau <pr2345@gmail.com>
Mon, 15 Feb 2010 19:42:11 +0000 (19:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 23:19:04 +0000 (15:19 -0800)
commita29f117f00add6ed9ef627028b8a48344536c3fa
tree47d0d0f90753dc2179cd36e12825b0e608ed3c50
parent8478b4948a4335c79766488f8435cb10b9692ada
bnx2: Fix bug when saving statistics.

This fixes the problem of dropping the carry when adding 2 32-bit values.
Switch to use array indexing for better readability.

Reported by and fix provided by Patrick Rabau.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c