summaryrefslogtreecommitdiffstats
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorAlexey Klimov <alexey.klimov@linaro.org>2015-11-06 16:29:09 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-06 17:50:42 -0800
commitb0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd (patch)
tree96e5b943a28fc8e10af413a4f95b43614520ce1b /mm/zswap.c
parent1c53e0d2737f3ce4afa27d5703494eb14610ec26 (diff)
downloadlinux-stable-b0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd.tar.gz
linux-stable-b0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd.tar.bz2
linux-stable-b0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd.zip
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>
Diffstat (limited to 'mm/zswap.c')
-rw-r--r--mm/zswap.c2
1 files changed, 1 insertions, 1 deletions
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)