summaryrefslogtreecommitdiffstats
path: root/net/dcb
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-05-18 21:03:58 +0800
committerDavid S. Miller <davem@davemloft.net>2021-05-18 13:44:24 -0700
commite2bd6bad9c1e976674de7d714a5c1567281a0843 (patch)
tree20da4fe2fa2a2daf397a399406d4f7298f1b024f /net/dcb
parent44e261c715b6ca0ebe79d7b43afdb2382e1ca92b (diff)
downloadlinux-stable-e2bd6bad9c1e976674de7d714a5c1567281a0843.tar.gz
linux-stable-e2bd6bad9c1e976674de7d714a5c1567281a0843.tar.bz2
linux-stable-e2bd6bad9c1e976674de7d714a5c1567281a0843.zip
net: dcb: Remove unnecessary INIT_LIST_HEAD()
The list_head dcb_app_list is initialized statically. It is unnecessary to initialize by INIT_LIST_HEAD(). Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
-rw-r--r--net/dcb/dcbnl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index 653e3bc9c87b..51f80a2f8194 100644
--- a/net/dcb/dcbnl.c
+++ b/net/dcb/dcbnl.c
@@ -2075,8 +2075,6 @@ EXPORT_SYMBOL(dcb_ieee_getapp_default_prio_mask);
static int __init dcbnl_init(void)
{
- INIT_LIST_HEAD(&dcb_app_list);
-
rtnl_register(PF_UNSPEC, RTM_GETDCB, dcb_doit, NULL, 0);
rtnl_register(PF_UNSPEC, RTM_SETDCB, dcb_doit, NULL, 0);