提交 cddac88f 编写于 作者: N Nicolas Kaiser 提交者: Greg Kroah-Hartman

staging: rts_pstor: use bitwise operator instead of logical one

Looks like a typo.
Signed-off-by: NNicolas Kaiser <nikai@nikai.net>
Reviewed-by: NPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 827e4a07
......@@ -2328,7 +2328,7 @@ static int reset_sd(struct rtsx_chip *chip)
retval = sd_send_cmd_get_rsp(chip, IO_SEND_OP_COND, 0, SD_RSP_TYPE_R4, rsp, 5);
if (retval == STATUS_SUCCESS) {
int func_num = (rsp[1] >> 4) && 0x07;
int func_num = (rsp[1] >> 4) & 0x07;
if (func_num) {
RTSX_DEBUGP("SD_IO card (Function number: %d)!\n", func_num);
chip->sd_io = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册