summaryrefslogtreecommitdiffstats
path: root/net/dcb/dcbnl.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-05-18 15:03:58 +0200
committerDavid S. Miller <davem@davemloft.net>2021-05-18 22:44:24 +0200
commite2bd6bad9c1e976674de7d714a5c1567281a0843 (patch)
tree20da4fe2fa2a2daf397a399406d4f7298f1b024f /net/dcb/dcbnl.c
parentcxgb4: clip_tbl: use list_del_init instead of list_del/INIT_LIST_HEAD (diff)
downloadlinux-e2bd6bad9c1e976674de7d714a5c1567281a0843.tar.xz
linux-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/dcbnl.c')
-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);