]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove a couple of redundant assignments
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Nov 2017 10:17:15 +0000 (10:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 06:53:14 +0000 (15:53 +0900)
commit68cf859e8238a53a7e879318328df82f9b609cd9
treee5083d180ac79783ec5ba4bf74116d8de9f839ba
parent47239b8ed9be0109cb8e5b748490986df47981b6
net: hns3: remove a couple of redundant assignments

The assignment to kinfo is redundant as this is a duplicate of
the initialiation of kinfo a few lines earlier, so it can be
removed.  The assignment to v_tc_info is never read, so this
variable is redundant and can be removed completely. Cleans
up two clang warnings:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:433:34:
warning: Value stored to 'kinfo' during its initialization is never read
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:775:3:
warning: Value stored to 'v_tc_info' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c