From 597705aa7fbf3e600283f4a870fb700385eacb13 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Sun, 12 Mar 2006 09:54:19 -0600 Subject: [PATCH] [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 --- drivers/scsi/scsi_transport_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c index 4855d16..780aaed 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) } 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) { -- 2.7.4