* [PATCH] mm/zswap: remove unneeded initialization to NULL in zswap_entry_find_get
@ 2015-09-10 0:55 Alexey Klimov
0 siblings, 0 replies; only message in thread
From: Alexey Klimov @ 2015-09-10 0:55 UTC (permalink / raw)
To: linux-mm, sjennings
Cc: linux-kernel, akpm, klimov.linux, yury.norov, Alexey Klimov
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 --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)
--
2.1.4
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-10 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 0:55 [PATCH] mm/zswap: remove unneeded initialization to NULL in zswap_entry_find_get Alexey Klimov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).