• Andrew Morton's avatar
    [PATCH] fix net/ixgb/ixgb_main.c warning · 76135c52
    Andrew Morton authored
    From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>
    
    drivers/net/ixgb/ixgb_main.c: In function `ixgb_intr':
    drivers/net/ixgb/ixgb_main.c:1593: warning: unused variable `hw'
    (catch by J. Cherry).
    
    This happens because `hw' is only used when CONFIG_IXGB_NAPI is not set.
    As `hw' is used only to have the code readable, we can use it for
    !CONFIG_IXGB_NAPI too.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    76135c52
ixgb_main.c 57.1 KB