• YueHaibing's avatar
    net: hns: remove redundant variables 'max_frm' and 'tmp_mac_key' · bd34389d
    YueHaibing authored
    Variables 'max_frm' and 'tmp_mac_key' are being assigned,
    but are never used,hence they are redundant and can be removed.
    
    fix fllowing warning:
    
    drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:461:6: warning: variable 'max_frm' set but not used [-Wunused-but-set-variable]
    drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1685:31: warning: variable 'tmp_mac_key' set but not used [-Wunused-but-set-variable]
    drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1855:41: warning: variable 'tmp_mac_key' set but not used [-Wunused-but-set-variable]
    Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    bd34389d
hns_dsaf_main.c 85.9 KB