diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-31 10:29:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-01 22:12:16 +0300 |
commit | bdad7529ee4eca42c7034f34d2fe96de121aae34 (patch) | |
tree | 20f98af79d6db71579583e7de5e80eb358012c32 /drivers/net/ethernet/hisilicon/hns3/hns3pf | |
parent | 56fcd40f8a51db475389856f31685a1b87a3cc9c (diff) | |
download | linux-bdad7529ee4eca42c7034f34d2fe96de121aae34.tar.xz |
net: hns3: remove redundant assignment to pointer reg_info
Pointer reg_info is being initialized with a value that is never read and
is being re-assigned a little later on. The assignment is redundant
and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c index 1debe37fe735..1c6b501fb7ca 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c @@ -279,7 +279,7 @@ static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf) static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf) { - struct hclge_dbg_reg_type_info *reg_info = &hclge_dbg_reg_info[0]; + struct hclge_dbg_reg_type_info *reg_info; bool has_dump = false; int i; |