Thread (2 messages) flat view 2 messages, 2 authors, 2018-08-02

Re: [PATCH] net: hns: remove redundant variables 'max_frm' and 'tmp_mac_key'

From: David Miller <davem@davemloft.net>
Date: 2018-08-02 21:40:53
Also in: lkml

From: YueHaibing <redacted>
Date: Wed, 1 Aug 2018 18:16:47 +0800
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 <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help