diff options
author | Xiang Chen <chenxiang66@hisilicon.com> | 2020-10-14 01:56:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-14 03:38:34 +0200 |
commit | 1860129421c37a152b3bed23d7bef8ae21545d67 (patch) | |
tree | 12e3b6c045b58fe90cbd7f8e87e577d3d84b587b /mm/zbud.c | |
parent | mm/z3fold.c: use xx_zalloc instead xx_alloc and memset (diff) | |
download | linux-1860129421c37a152b3bed23d7bef8ae21545d67.tar.xz linux-1860129421c37a152b3bed23d7bef8ae21545d67.zip |
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 <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>
Diffstat (limited to 'mm/zbud.c')
-rw-r--r-- | mm/zbud.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/zbud.c b/mm/zbud.c index bc93aa4e46fc..c49966ece674 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], |