OSDN Git Service

mm/zswap.c: remove unneeded initialization to NULL in zswap_entry_find_get()
authorAlexey Klimov <alexey.klimov@linaro.org>
Sat, 7 Nov 2015 00:29:09 +0000 (16:29 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
On the next line entry variable will be re-initialized so no need to init
it with NULL.

Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Cc: Seth Jennings <sjennings@variantweb.net>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zswap.c

index e54166d..8275689 100644 (file)
@@ -342,7 +342,7 @@ static void zswap_entry_put(struct zswap_tree *tree,
 static struct zswap_entry *zswap_entry_find_get(struct rb_root *root,
                                pgoff_t offset)
 {
-       struct zswap_entry *entry = NULL;
+       struct zswap_entry *entry;
 
        entry = zswap_rb_search(root, offset);
        if (entry)