]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Minor code improvements
authorEilon Greenstein <eilong@broadcom.com>
Wed, 13 Aug 2008 22:58:49 +0000 (15:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Aug 2008 23:05:36 +0000 (16:05 -0700)
commit40c675dc45b6914db1ac4dc9e0e327d54ed16d21
tree2ed8c1557ec13fca018db1858b98ddd45697c7a6
parentfc2b6a8e400e0cc862cf1c1f27803bb9f9f5bc1f
bnx2x: Minor code improvements

Minor code improvements
Small changes to make the code a little bit more efficient and mostly
more readable:
- Using unified macros for EMAC_RD/WR which looks like normal REG_RD/WR
- Removing the NIG_WR since it did nothing and was only confusing
- On bnx2x_panic_dump, print only the used parts of the rings
- define parameters only on the branch they are needed and not at the
  beginning of the function
- using NETIF_MSG_INTR and not private BNX2X_MSG_SP for debug prints

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x.h
drivers/net/bnx2x_link.c
drivers/net/bnx2x_main.c