* [PATCH net-next] net: dcb: Remove unnecessary INIT_LIST_HEAD()
@ 2021-05-18 13:03 Yang Yingliang
2021-05-18 20:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2021-05-18 13:03 UTC (permalink / raw)
To: linux-kernel, netdev; +Cc: davem, kuba
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>
---
net/dcb/dcbnl.c | 2 --
1 file changed, 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);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: dcb: Remove unnecessary INIT_LIST_HEAD()
2021-05-18 13:03 [PATCH net-next] net: dcb: Remove unnecessary INIT_LIST_HEAD() Yang Yingliang
@ 2021-05-18 20:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-05-18 20:50 UTC (permalink / raw)
To: Yang Yingliang; +Cc: linux-kernel, netdev, davem, kuba
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Tue, 18 May 2021 21:03:58 +0800 you wrote:
> 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>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-18 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 13:03 [PATCH net-next] net: dcb: Remove unnecessary INIT_LIST_HEAD() Yang Yingliang
2021-05-18 20:50 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.