projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e7625
)
staging/rts_pstor: remove braces {} in sd.c (sd_hw_rst)
author
Toshiaki Yamane
<yamanetoshi@gmail.com>
Fri, 7 Sep 2012 04:39:09 +0000
(13:39 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:36:08 +0000
(15:36 -0700)
fixed below checkpatch warnings.
-WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts_pstor/sd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts_pstor/sd.c
b/drivers/staging/rts_pstor/sd.c
index 3fd1cce69a307998fc7fc44401c203015308ad7a..cf054b6223d05ec89d0923d9f1d8770c4c90d445 100644
(file)
--- a/
drivers/staging/rts_pstor/sd.c
+++ b/
drivers/staging/rts_pstor/sd.c
@@
-4452,9
+4452,8
@@
int sd_hw_rst(struct scsi_cmnd *srb, struct rtsx_chip *chip)
switch (srb->cmnd[1] & 0x0F) {
case 0:
#ifdef SUPPORT_SD_LOCK
- if (0x64 == srb->cmnd[9])
{
+ if (0x64 == srb->cmnd[9])
sd_card->sd_lock_status |= SD_SDR_RST;
- }
#endif
retval = reset_sd_card(chip);
if (retval != STATUS_SUCCESS) {