From: Sheetal Tigadoli <sheetal.tigadoli@gmail.com>
To: chris@printf.net
Cc: joe@perches.com, linux-mmc@vger.kernel.org, ben@decadent.org.uk,
kuninori.morimoto.gx@renesas.com, ulf.hansson@linaro.org,
linux-kernel@vger.kernel.org,
Sheetal Tigadoli <sheetal.tigadoli@gmail.com>
Subject: [PATCH 3/5] drivers: mmc: card: Fixes WARNING braces are not necessary for single statement
Date: Mon, 2 Feb 2015 01:37:00 +0530 [thread overview]
Message-ID: <1422821222-24079-4-git-send-email-sheetal.tigadoli@gmail.com> (raw)
In-Reply-To: <1422821222-24079-3-git-send-email-sheetal.tigadoli@gmail.com>
Patch fixes following coding style warnings.
drivers/mmc/card/block.c:1734: WARNING: braces {} are not necessary for single statement blocks
drivers/mmc/card/block.c:2019: WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Sheetal Tigadoli <sheetal.tigadoli@gmail.com>
---
drivers/mmc/card/block.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 741a1e1..2394d0b 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1733,9 +1733,8 @@ static int mmc_blk_cmd_err(struct mmc_blk_data *md, struct mmc_card *card,
u32 blocks;
blocks = mmc_sd_num_wr_blocks(card);
- if (blocks != (u32)-1) {
+ if (blocks != (u32)-1)
ret = blk_end_request(req, 0, blocks << 9);
- }
} else {
if (!mmc_packed_cmd(mq_rq->cmd_type))
ret = blk_end_request(req, 0, brq->data.bytes_xfered);
@@ -2018,9 +2017,8 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
ret = mmc_blk_part_switch(card, md);
if (ret) {
- if (req) {
+ if (req)
blk_end_request_all(req, -EIO);
- }
ret = 0;
goto out;
}
--
1.7.9.5
next prev parent reply other threads:[~2015-02-01 20:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-01 20:06 [PATCH 0/5] drivers; mmc: card: Sheetal Tigadoli
2015-02-01 20:06 ` [PATCH 1/5] drivers: mmc: card: Fix replaces simple_strtoul func call with kstrtoul Sheetal Tigadoli
2015-02-01 20:06 ` [PATCH 2/5] drivers: mmc: card: Fixes Missing blank line after variable initialization, coding style warning Sheetal Tigadoli
2015-02-01 20:07 ` Sheetal Tigadoli [this message]
2015-02-01 20:07 ` [PATCH 4/5] drivers: mmc: card: Fixed ERROR that open brace should be on the previous line Sheetal Tigadoli
2015-02-01 20:07 ` [PATCH 5/5] drivers: mmc: card: Fixed warning line over 80 characters in file block Sheetal Tigadoli
2015-02-01 20:20 ` [PATCH 2/5] drivers: mmc: card: Fixes Missing blank line after variable initialization, coding style warning Joe Perches
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=1422821222-24079-4-git-send-email-sheetal.tigadoli@gmail.com \
--to=sheetal.tigadoli@gmail.com \
--cc=ben@decadent.org.uk \
--cc=chris@printf.net \
--cc=joe@perches.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
/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