net: dcb: Remove unnecessary INIT_LIST_HEAD()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 18 May 2021 13:03:58 +0000 (21:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2021 20:44:24 +0000 (13:44 -0700)
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>
net/dcb/dcbnl.c

index 653e3bc..51f80a2 100644 (file)
@@ -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);