linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Klimov <alexey.klimov@linaro.org>
To: linux-mm@kvack.org, sjennings@variantweb.net
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	klimov.linux@gmail.com, yury.norov@gmail.com,
	Alexey Klimov <alexey.klimov@linaro.org>
Subject: [PATCH] mm/zswap: remove unneeded initialization to NULL in zswap_entry_find_get
Date: Thu, 10 Sep 2015 03:55:43 +0300	[thread overview]
Message-ID: <1441846543-10448-1-git-send-email-alexey.klimov@linaro.org> (raw)

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>

                 reply	other threads:[~2015-09-10  0:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441846543-10448-1-git-send-email-alexey.klimov@linaro.org \
    --to=alexey.klimov@linaro.org \
    --cc=akpm@linux-foundation.org \
    --cc=klimov.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=sjennings@variantweb.net \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).