staging: rts_pstor: Fix a miswriting
authorwwang <wei_wang@realsil.com.cn>
Mon, 11 Jul 2011 02:20:20 +0000 (10:20 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jul 2011 20:22:53 +0000 (13:22 -0700)
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>
drivers/staging/rts_pstor/sd.c

index e4b3891a4f2a89cc5f2b3ee9fdb8e82fa36f162b..8db14ddbeb7be83d32ce2341b16daf49b3cad767 100644 (file)
@@ -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);
                                }