[SCSI] scsi: use get_unaligned_* helpers
Harvey Harrison [Wed, 21 May 2008 20:54:20 +0000 (15:54 -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 9c267b4..8b4e412 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;