Skip to content

Commit b0c9865

Browse files
laklimovtorvalds
authored andcommitted
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 <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>
1 parent 1c53e0d commit b0c9865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mm/zswap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void zswap_entry_put(struct zswap_tree *tree,
342342
static struct zswap_entry *zswap_entry_find_get(struct rb_root *root,
343343
pgoff_t offset)
344344
{
345-
struct zswap_entry *entry = NULL;
345+
struct zswap_entry *entry;
346346

347347
entry = zswap_rb_search(root, offset);
348348
if (entry)

0 commit comments

Comments
 (0)