]> www.infradead.org Git - users/willy/linux.git/commit
net/ipv4: make use of the helper macro LIST_HEAD()
authorHongbo Li <lihongbo22@huawei.com>
Wed, 4 Sep 2024 09:32:39 +0000 (17:32 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Sep 2024 01:10:21 +0000 (18:10 -0700)
commitcecbe5c8c8039b2965c9fc27c802db6b9ec9dcb7
tree1c3f2a4d0079ff6cf07812ff45d217eb9e4d31e7
parentbe8a17fe994dbffd2dfa0ad83bae9bbeef54c076
net/ipv4: 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-2-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_input.c