]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: mxs-mmc: Fix warning due to incorrect type
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 8 Jan 2013 00:42:35 +0000 (22:42 -0200)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:28:56 +0000 (13:28 -0500)
commitd9a4a22b34d1e3e9f133ea4f9a45c284c650e3ae
treefd337ec8c5182547c24ad1ab43027cd68ada242b
parent6b28c9c58a94c40ac39589f5fed988dea0af2e6e
mmc: mxs-mmc: Fix warning due to incorrect type

Fixes the following warning when building with W=1 option:

drivers/mmc/host/mxs-mmc.c: In function 'mxs_mmc_adtc':
drivers/mmc/host/mxs-mmc.c:401:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

The warning happens because 'i' is used in 'for_each_sg(sgl, sg, sg_len, i)' and should be made unsigned.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mxs-mmc.c