diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 10:54:19 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 10:54:19 -0500 |
commit | 597705aa7fbf3e600283f4a870fb700385eacb13 (patch) | |
tree | d2595f26f951a936949f5d866c5156d250090c84 | |
parent | a1d4f73a00958162f91311396d37080f5e9b9ef1 (diff) |
[SCSI] fix minor problem in spi transport message functions
The check for a one byte message should be msg[0] == 0x55 not msg == 0x55
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/scsi_transport_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c index 4855d1602d6b..780aaedcbce9 100644 --- a/drivers/scsi/scsi_transport_spi.c +++ b/drivers/scsi/scsi_transport_spi.c | |||
@@ -1209,7 +1209,7 @@ int spi_print_msg(const unsigned char *msg) | |||
1209 | } else if (msg[0] & 0x80) { | 1209 | } else if (msg[0] & 0x80) { |
1210 | printk("%02x ", msg[0]); | 1210 | printk("%02x ", msg[0]); |
1211 | /* Normal One byte */ | 1211 | /* Normal One byte */ |
1212 | } else if ((msg[0] < 0x1f) || (msg == 0x55)) { | 1212 | } else if ((msg[0] < 0x1f) || (msg[0] == 0x55)) { |
1213 | printk("%02x ", msg[0]); | 1213 | printk("%02x ", msg[0]); |
1214 | /* Two byte */ | 1214 | /* Two byte */ |
1215 | } else if (msg[0] <= 0x2f) { | 1215 | } else if (msg[0] <= 0x2f) { |