Skip to content

Commit

Permalink
mm/zswap.c: remove unneeded initialization to NULL in zswap_entry_fin…
Browse files Browse the repository at this point in the history
…d_get()

On the next line entry variable will be re-initialized so no need to init
it with NULL.

Signed-off-by: Alexey Klimov <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Klimov authored and torvalds committed Nov 7, 2015
1 parent 1c53e0d commit b0c9865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/zswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0c9865

Please sign in to comment.