[SCSI] Use ARRAY_SIZE in spi_print_msg
authorMatthew Wilcox <matthew@wil.cx>
Thu, 15 Dec 2005 21:22:01 +0000 (16:22 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 16 Dec 2005 02:42:18 +0000 (18:42 -0800)
commitb32aaffcdc694650d299a59501c5b3e267fca343
tree322a00bae954da76a790cad17807bc0f12bc1b6c
parent479721538957d514df6dcb29f66e5edd26393bb1
[SCSI] Use ARRAY_SIZE in spi_print_msg

Replace the custom NO_*_MSGS definitions with uses of ARRAY_SIZE.
This fixes a bug in the definition of NO_EXTENDED_MSGS.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_spi.c