提交 597705aa 编写于 作者: J James Bottomley

[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: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 a1d4f73a
...@@ -1209,7 +1209,7 @@ int spi_print_msg(const unsigned char *msg) ...@@ -1209,7 +1209,7 @@ int spi_print_msg(const unsigned char *msg)
} else if (msg[0] & 0x80) { } else if (msg[0] & 0x80) {
printk("%02x ", msg[0]); printk("%02x ", msg[0]);
/* Normal One byte */ /* Normal One byte */
} else if ((msg[0] < 0x1f) || (msg == 0x55)) { } else if ((msg[0] < 0x1f) || (msg[0] == 0x55)) {
printk("%02x ", msg[0]); printk("%02x ", msg[0]);
/* Two byte */ /* Two byte */
} else if (msg[0] <= 0x2f) { } else if (msg[0] <= 0x2f) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册