From: Alexey Klimov Date: Sat, 7 Nov 2015 00:29:09 +0000 (-0800) Subject: mm/zswap.c: remove unneeded initialization to NULL in zswap_entry_find_get() X-Git-Tag: v4.4-rc1~77^2~80 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd;p=linux-2.6-block.git mm/zswap.c: remove unneeded initialization to NULL in zswap_entry_find_get() On the next line entry variable will be re-initialized so no need to init it with NULL. Signed-off-by: Alexey Klimov Cc: Seth Jennings Cc: Dan Streetman Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/zswap.c b/mm/zswap.c index e54166d3732e..827568959d74 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -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)