From: Colin Ian King Date: Mon, 24 Feb 2020 19:20:22 +0000 (+0000) Subject: net: hns3: remove redundant initialization of pointer 'client' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=31a57fded31176bc3e67bc122e70536cbb02b47a;p=linux.git net: hns3: remove redundant initialization of pointer 'client' The pointer 'client' is being initialized with a value that is never read, it is being updated later on. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 51399dbed77a6..89d352385260b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -9076,8 +9076,8 @@ init_nic_err: static int hclge_init_roce_client_instance(struct hnae3_ae_dev *ae_dev, struct hclge_vport *vport) { - struct hnae3_client *client = vport->roce.client; struct hclge_dev *hdev = ae_dev->priv; + struct hnae3_client *client; int rst_cnt; int ret;