diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-05-18 15:03:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-18 22:44:24 +0200 |
commit | e2bd6bad9c1e976674de7d714a5c1567281a0843 (patch) | |
tree | 20da4fe2fa2a2daf397a399406d4f7298f1b024f /net/dcb/dcbnl.c | |
parent | cxgb4: clip_tbl: use list_del_init instead of list_del/INIT_LIST_HEAD (diff) | |
download | linux-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.c | 2 |
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); |