net: hns: remove redundant variables 'max_frm' and 'tmp_mac_key'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 1 Aug 2018 10:16:47 +0000 (18:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Aug 2018 21:40:22 +0000 (14:40 -0700)
commitbd34389d4fdb4fe85a4c4a663dcf29c97ea2111a
treee47ee1ab36cdaed3c77583bbb9685e30c43e6a0c
parentfc389d1cb3855f6012093f741531a9ad0ec4ae9a
net: hns: remove redundant variables 'max_frm' and 'tmp_mac_key'

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: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c