]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vmalloc.c: make use of the helper macro LIST_HEAD()
authorHongbo Li <lihongbo22@huawei.com>
Wed, 28 Aug 2024 04:12:16 +0000 (12:12 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 9 Sep 2024 23:39:04 +0000 (16:39 -0700)
commit7ae12a57c56e0b87e6e698479c1f8b65434a608f
tree3e81561667925a06bce04593ed5fdb2bb9bfd235
parent81d3ff3c6f76306b22138d69e980634f53bf17fa
mm/vmalloc.c: 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.

Link: https://lkml.kernel.org/r/20240828041216.1222582-1-lihongbo22@huawei.com
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c