]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mm/zbud: remove redundant initialization
authorXiang Chen <chenxiang66@hisilicon.com>
Tue, 13 Oct 2020 23:56:55 +0000 (16:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:34 +0000 (18:38 -0700)
zhdr is already initialized in the front of the function, so remove
redundant initialization here.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Link: https://lkml.kernel.org/r/1600419885-191907-1-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zbud.c

index bc93aa4e46fc3db59e17434fdfc490bf81e9eccd..c49966ece674b1bc3340fc512c20e4d746fc6ae0 100644 (file)
--- 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],