• Michael Chan's avatar
    tg3: Fix sparse warnings. · 86449944
    Michael Chan authored
    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: default avatarFengguang Wu <fenguang.wu@intel.com>
    Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    86449944
tg3.c 428 KB