net/tipc: make use of the helper macro LIST_HEAD()
authorHongbo Li <lihongbo22@huawei.com>
Wed, 4 Sep 2024 09:32:40 +0000 (17:32 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Sep 2024 01:10:21 +0000 (18:10 -0700)
commite636ba1a15e764f72ecb3c2a689feaa6c9fdd058
treeed575d2a2666a482f25d2195d988269d41c383f0
parentcecbe5c8c8039b2965c9fc27c802db6b9ec9dcb7
net/tipc: 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-3-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tipc/socket.c