diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2020-09-25 08:26:14 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-24 20:19:24 -0700 |
commit | 9d8d5a360b515bdc7be4beb89caa7b32fccce721 (patch) | |
tree | f4d8a2532f0d0a57caf6606f3d7e99a25eb69511 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | |
parent | net: hns3: refactor the function for dumping tc information in debugfs (diff) | |
download | linux-dev-9d8d5a360b515bdc7be4beb89caa7b32fccce721.tar.xz linux-dev-9d8d5a360b515bdc7be4beb89caa7b32fccce721.zip |
net: hns3: remove unnecessary variable initialization
If a variable is assigned a value before it is used, it's no
need to assign an initial value to the variable. So remove
these redundant operations.
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 8eb9af49b85c..f9f831267431 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -171,7 +171,7 @@ static u8 *hclgevf_tqps_get_strings(struct hnae3_handle *handle, u8 *data) { struct hnae3_knic_private_info *kinfo = &handle->kinfo; u8 *buff = data; - int i = 0; + int i; for (i = 0; i < kinfo->num_tqps; i++) { struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], |