* [PATCH 1/2] staging/rts_pstor: fix the no brace needed warning
@ 2012-07-07 6:02 Devendra Naga
0 siblings, 0 replies; only message in thread
From: Devendra Naga @ 2012-07-07 6:02 UTC (permalink / raw)
To: Greg Kroah-Hartman, wwang, devel, linux-kernel; +Cc: Devendra Naga
for if else statements having single block no braces are needed
fixed the following checkpatch warning
drivers/staging/rts_pstor/sd.c:140: WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
---
drivers/staging/rts_pstor/sd.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rts_pstor/sd.c b/drivers/staging/rts_pstor/sd.c
index b9474a8..ff9bf0f 100644
--- a/drivers/staging/rts_pstor/sd.c
+++ b/drivers/staging/rts_pstor/sd.c
@@ -137,11 +137,10 @@ static int sd_check_data0_status(struct rtsx_chip *chip)
{
u8 stat;
- if (CHECK_PID(chip, 0x5209)) {
+ if (CHECK_PID(chip, 0x5209))
RTSX_READ_REG(chip, REG_SD_BUS_STAT, &stat);
- } else {
+ else
RTSX_READ_REG(chip, REG_SD_STAT1, &stat);
- }
if (!(stat & SD_DAT0_STATUS)) {
sd_set_err_code(chip, SD_BUSY);
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-07 6:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-07 6:02 [PATCH 1/2] staging/rts_pstor: fix the no brace needed warning Devendra Naga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox