Skip to content

Commit

Permalink
staging: rts_pstor: use bitwise operator instead of logical one
Browse files Browse the repository at this point in the history
Looks like a typo.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Nicolas Kaiser authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 827e4a0 commit cddac88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cddac88

Please sign in to comment.