[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180802.144049.1566403478963516134.davem@davemloft.net>
Date: Thu, 02 Aug 2018 14:40:49 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: yisen.zhuang@...wei.com, salil.mehta@...wei.com,
lipeng321@...wei.com, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, shenjian15@...wei.com, joe@...ches.com,
keescook@...omium.org, wangxi11@...wei.com
Subject: Re: [PATCH] net: hns: remove redundant variables 'max_frm' and
'tmp_mac_key'
From: YueHaibing <yuehaibing@...wei.com>
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 <yuehaibing@...wei.com>
Applied, thank you.
Powered by blists - more mailing lists