tg3: Fix sparse warnings.
authorMichael Chan <mchan@broadcom.com>
Wed, 3 Oct 2012 03:31:14 +0000 (20:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2012 03:21:34 +0000 (23:21 -0400)
commit864499449f256e32815575a9b860267ebefa6d70
tree9dfe4020e3b0f79f3d2002ff371cf326dac3db21
parent5316cf9a5197eb80b2800e1acadde287924ca975
tg3: Fix sparse warnings.

drivers/net/ethernet/broadcom/tg3.c:8121:8: warning: symbol 'i' shadows an earlier one
drivers/net/ethernet/broadcom/tg3.c:8003:6: originally declared here
drivers/net/ethernet/broadcom/tg3.c:785:5: warning: symbol 'tg3_ape_scratchpad_read' was not declared. Should it be static?
drivers/net/ethernet/broadcom/tg3.c:7781:19: warning: Using plain integer as NULL pointer
drivers/net/ethernet/broadcom/tg3.c:10231:31: error: bad constant expression

Reported-by: Fengguang Wu <fenguang.wu@intel.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c