diff mbox

mm/zswap: remove unneeded initialization to NULL in zswap_entry_find_get

Message ID 1441846543-10448-1-git-send-email-alexey.klimov@linaro.org
State Accepted
Commit b0c9865fd2d7a34aa58bb58756ff088d2ec4bbcd
Headers show

Commit Message

Alexey Klimov Sept. 10, 2015, 12:55 a.m. UTC
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>
---
 mm/zswap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/mm/zswap.c b/mm/zswap.c
index 48a1d08..4f2f965 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -325,7 +325,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)