• Wong Vee Khee's avatar
    net: stmmac: Fix unused values warnings · 3e6dc7b6
    Wong Vee Khee authored
    The commit 8532f613 ("net: stmmac: introduce MSI Interrupt routines
    for mac, safety, RX & TX") introduced the converity warnings:-
    
      1. Unused value (UNUSED_VALUE)
         assigned_value: Assigning value REQ_IRQ_ERR_MAC to irq_err here,
         but that stored value is not used.
    
      2. Unused value (UNUSED_VALUE)
         assigned_value: Assigning value REQ_IRQ_ERR_NO to irq_err here,
         but that stored value is overwritten before it can used.
    
      3. Unused value (UNUSED_VALUE)
         assigned_value: Assigning value REQ_IRQ_ERR_WOL to irq_err here,
         but that stored value is not used.
    
    Fixed these by removing the unnecessary value assignments.
    
    Fixes: 8532f613 ("net: stmmac: introduce MSI Interrupt routines for mac, safety, RX & TX")
    Signed-off-by: default avatarWong Vee Khee <vee.khee.wong@linux.intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3e6dc7b6
stmmac_main.c 196 KB