summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorShubhrajyoti D2012-02-27 14:59:05 +0100
committerGrant Likely2012-03-09 18:56:10 +0100
commit8f53602be555e500cfcd957955bb40fac19f2a6b (patch)
tree66ae924690cd01f7cd4a217a5c4f9ddeae085c26 /include/linux/spi
parentspi: Add SuperH HSPI prototype driver (diff)
downloadkernel-qcow2-linux-8f53602be555e500cfcd957955bb40fac19f2a6b.tar.gz
kernel-qcow2-linux-8f53602be555e500cfcd957955bb40fac19f2a6b.tar.xz
kernel-qcow2-linux-8f53602be555e500cfcd957955bb40fac19f2a6b.zip
spi: Trivial warning fix
The loop count i traverses for ntrans which is unsigned so make the loop count i also unsigned. Fix the below warning In file included from drivers/spi/spi-omap2-mcspi.c:38: include/linux/spi/spi.h: In function 'spi_message_alloc': include/linux/spi/spi.h:556: warning: comparison between signed and unsigned integer expressions Cc: Vitaly Wool <vwool@ru.mvista.com> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index f9e30a5b3543..98679b061b63 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -600,7 +600,7 @@ static inline struct spi_message *spi_message_alloc(unsigned ntrans, gfp_t flags
+ ntrans * sizeof(struct spi_transfer),
flags);
if (m) {
- int i;
+ unsigned i;
struct spi_transfer *t = (struct spi_transfer *)(m + 1);
INIT_LIST_HEAD(&m->transfers);