Commit 72d7a036 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] libata build fix

drivers/scsi/libata-core.c: In function `swap_buf_le16':
drivers/scsi/libata-core.c:2073: `words' undeclared (first use in this function)
drivers/scsi/libata-core.c:2073: (Each undeclared identifier is reported only once
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent 815b472b
......@@ -2070,7 +2070,7 @@ void swap_buf_le16(u16 *buf, unsigned int buf_words)
#ifdef __BIG_ENDIAN
unsigned int i;
for (i = 0; i < words; i++)
for (i = 0; i < buf_words; i++)
buf[i] = le16_to_cpu(buf[i]);
#endif /* __BIG_ENDIAN */
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment