From: Guoqing Jiang <gqjiang@suse.com>
To: shli@fb.com
Cc: linux-raid@vger.kernel.org, Guoqing Jiang <gqjiang@suse.com>
Subject: [PATCH 2/3] md/bitmap: remove redundant return in bitmap_checkpage
Date: Mon, 14 Mar 2016 17:01:38 +0800 [thread overview]
Message-ID: <1457946099-1878-3-git-send-email-gqjiang@suse.com> (raw)
In-Reply-To: <1457946099-1878-1-git-send-email-gqjiang@suse.com>
The "return 0" is not needed since bitmap_checkpage
will finally return 0 for the case.
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
---
drivers/md/bitmap.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index bbe7b64..7df6b4f 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -98,7 +98,6 @@ __acquires(bitmap->lock)
bitmap->bp[page].hijacked) {
/* somebody beat us to getting the page */
kfree(mappage);
- return 0;
} else {
/* no page was in place and we have one, so install it */
--
2.6.2
next prev parent reply other threads:[~2016-03-14 9:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 9:01 [PATCH 0/3] md: trivial changes Guoqing Jiang
2016-03-14 9:01 ` [PATCH 1/3] md/raid1: remove unnecessary BUG_ON Guoqing Jiang
2016-03-14 9:01 ` Guoqing Jiang [this message]
2016-03-14 9:01 ` [PATCH 3/3] md: fix typos for stipe Guoqing Jiang
2016-03-14 18:16 ` [PATCH 0/3] md: trivial changes Shaohua Li
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=1457946099-1878-3-git-send-email-gqjiang@suse.com \
--to=gqjiang@suse.com \
--cc=linux-raid@vger.kernel.org \
--cc=shli@fb.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).