summaryrefslogtreecommitdiff
path: root/drivers/staging/rts_pstor
diff options
context:
space:
mode:
authorwwang <wei_wang@realsil.com.cn>2011-07-11 10:20:20 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-18 13:22:53 -0700
commit19a3833fd4909c2d88683c0798fe039a69723194 (patch)
treeba4b0883d885f95ab53b429f3ebc0f78b8a2eac3 /drivers/staging/rts_pstor
parent66240a6883744047700f9e2da977a7d4bab5eddc (diff)
staging: rts_pstor: Fix a miswriting
cppcheck reported: [staging/rts_pstor/sd.c:3730] -> [staging/rts_pstor/sd.c:3726]: (style) Found duplicate if expressions. It's a miswriting, and the second if expression should be "(rsp_type == SD_RSP_TYPE_R0)" Signed-off-by: wwang <wei_wang@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rts_pstor')
-rw-r--r--drivers/staging/rts_pstor/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts_pstor/sd.c b/drivers/staging/rts_pstor/sd.c
index e4b3891a4f2a..8db14ddbeb7b 100644
--- a/drivers/staging/rts_pstor/sd.c
+++ b/drivers/staging/rts_pstor/sd.c
@@ -3747,7 +3747,7 @@ RTY_SEND_CMD:
if ((ptr[3] & 0x1E) != 0x04) {
TRACE_RET(chip, STATUS_FAIL);
}
- } else if (rsp_type == SD_RSP_TYPE_R2) {
+ } else if (rsp_type == SD_RSP_TYPE_R0) {
if ((ptr[3] & 0x1E) != 0x03) {
TRACE_RET(chip, STATUS_FAIL);
}