net: dcb: Remove unnecessary INIT_LIST_HEAD()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Yang Yingliang <[email protected]>
--- net/dcb/dcbnl.c | 2 -- 1 file changed, 2 deletions(-)
net/dcb/dcbnl.c +0 -2
@@ -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 );
Signature · 1 line
2.25.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Tue, 18 May 2021 21:03:58 +0800 you wrote:
The
list_headdcb_app_listis initialized statically. It is unnecessary to initialize byINIT_LIST_HEAD().Reported-by Hulk Robot <[email protected]>Signed-off-by Yang Yingliang <[email protected]>--- net/dcb/dcbnl.c | 2 -- 1 file changed, 2 deletions(-)
Here is the summary with links:
- [net-next] net: dcb: Remove unnecessary INIT_LIST_HEAD()
https://git.kernel.org/netdev/net-next/c/e2bd6bad9c1e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html