mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
66240a6883
commit
19a3833fd4
1 changed files with 1 additions and 1 deletions
|
@ -3747,7 +3747,7 @@ int ext_sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx,
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue