]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/core: make use of the helper macro LIST_HEAD()
authorHongbo Li <lihongbo22@huawei.com>
Wed, 4 Sep 2024 09:32:43 +0000 (17:32 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Sep 2024 01:10:22 +0000 (18:10 -0700)
commit17f01391903de08c8a33407de9f502fc1cc8b5ff
treeaf01b180167b41b0e37e9c0b6cf0fc2a584680e9
parent2a7dd251b6fee7bcd2a3978600eaa98dd2b7b481
net/core: make use of the helper macro LIST_HEAD()

list_head can be initialized automatically with LIST_HEAD()
instead of calling INIT_LIST_HEAD(). Here we can simplify
the code.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patch.msgid.link/20240904093243.3345012-6-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c