Skip to contentSkip to conversation

staging: rts_pstor: use bitwise operator instead of logical one

PATCH In review Nicolas Kaiser 2 participants 2 messages May 25, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rts_pstor: use bitwise operator instead of logical one

Looks like a typo?

---
 drivers/staging/rts_pstor/sd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/rts_pstor/sd.c +1 -1
index bddb031..cdae497 100644
@@ -2328,7 +2328,7 @@ Switch_Fail:
 
 			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;
Signature · 1 line
1.7.5.rc3