aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
diff options
context:
space:
mode:
authorHao Chen <chenhao288@hisilicon.com>2021-08-28 14:55:20 +0800
committerDavid S. Miller <davem@davemloft.net>2021-08-28 11:20:05 +0100
commit1026b1534fa12a9dbdcebd34d417513fca4647f0 (patch)
tree2daa973755e43e8c34b299de0433b306897e327b /drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
parentnet: hns3: don't config TM DWRR twice when set ETS (diff)
downloadlinux-dev-1026b1534fa12a9dbdcebd34d417513fca4647f0.tar.xz
linux-dev-1026b1534fa12a9dbdcebd34d417513fca4647f0.zip
net: hns3: remove unnecessary "static" of local variables in function
Some local variable declarations are no need to add "static", so remove it. Signed-off-by: Hao Chen <chenhao288@hisilicon.com> Signed-off-by: Guangbin Huang <huangguangbin2@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.c2
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 3e8ba7b62d1d..481179ac932f 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
@@ -867,7 +867,7 @@ static void
hns3_dbg_dev_caps(struct hnae3_handle *h, char *buf, int len, int *pos)
{
struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev);
- static const char * const str[] = {"no", "yes"};
+ const char * const str[] = {"no", "yes"};
unsigned long *caps = ae_dev->caps;
u32 i, state;