]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] scsi: use get_unaligned_* helpers
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 21 May 2008 20:54:20 +0000 (15:54 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:23 +0000 (08:22 -0500)
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c

index 9c267b44044419c39a483f7e1a8ddafc3baf4f2b..8b4e412a0974345762008ab40ca5b61bc29fd446 100644 (file)
@@ -591,7 +591,7 @@ invalid_datalen:
                        goto out;
                }
 
-               senselen = be16_to_cpu(get_unaligned((__be16 *) data));
+               senselen = get_unaligned_be16(data);
                if (datalen < senselen)
                        goto invalid_datalen;