Skip to content

Commit

Permalink
[SCSI] fix minor problem in spi transport message functions
Browse files Browse the repository at this point in the history
The check for a one byte message should be msg[0] == 0x55 not msg == 0x55

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
James Bottomley committed Mar 12, 2006
1 parent a1d4f73 commit 597705a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_transport_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ int spi_print_msg(const unsigned char *msg)
} else if (msg[0] & 0x80) {
printk("%02x ", msg[0]);
/* Normal One byte */
} else if ((msg[0] < 0x1f) || (msg == 0x55)) {
} else if ((msg[0] < 0x1f) || (msg[0] == 0x55)) {
printk("%02x ", msg[0]);
/* Two byte */
} else if (msg[0] <= 0x2f) {
Expand Down

0 comments on commit 597705a

Please sign in to comment.