From: Xiang Chen Date: Tue, 13 Oct 2020 23:56:55 +0000 (-0700) Subject: mm/zbud: remove redundant initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1860129421c37a152b3bed23d7bef8ae21545d67;p=linux.git mm/zbud: remove redundant initialization zhdr is already initialized in the front of the function, so remove redundant initialization here. Signed-off-by: Xiang Chen Signed-off-by: Andrew Morton Reviewed-by: David Hildenbrand Cc: Seth Jennings Cc: Dan Streetman Link: https://lkml.kernel.org/r/1600419885-191907-1-git-send-email-chenxiang66@hisilicon.com Signed-off-by: Linus Torvalds --- diff --git a/mm/zbud.c b/mm/zbud.c index bc93aa4e46fc3..c49966ece674b 100644 --- a/mm/zbud.c +++ b/mm/zbud.c @@ -367,7 +367,6 @@ int zbud_alloc(struct zbud_pool *pool, size_t size, gfp_t gfp, spin_lock(&pool->lock); /* First, try to find an unbuddied zbud page. */ - zhdr = NULL; for_each_unbuddied_list(i, chunks) { if (!list_empty(&pool->unbuddied[i])) { zhdr = list_first_entry(&pool->unbuddied[i],