diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2020-09-25 03:26:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-25 06:19:24 +0300 |
commit | 9d8d5a360b515bdc7be4beb89caa7b32fccce721 (patch) | |
tree | f4d8a2532f0d0a57caf6606f3d7e99a25eb69511 /drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | |
parent | 00577c8b7fa2ddd6194a989af5f005a09103ea85 (diff) | |
download | linux-9d8d5a360b515bdc7be4beb89caa7b32fccce721.tar.xz |
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 'drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index fe7fb565da19..c6d7463ce2ea 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c @@ -19,7 +19,7 @@ static int hns3_dbg_queue_info(struct hnae3_handle *h, struct hns3_enet_ring *ring; u32 base_add_l, base_add_h; u32 queue_num, queue_max; - u32 value, i = 0; + u32 value, i; int cnt; if (!priv->ring) { |