From: Fabio Estevam Date: Tue, 8 Jan 2013 00:42:35 +0000 (-0200) Subject: mmc: mxs-mmc: Fix warning due to incorrect type X-Git-Tag: next-20130218~55^2~43 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d9a4a22b34d1e3e9f133ea4f9a45c284c650e3ae;p=karo-tx-linux.git 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 Acked-by: Marek Vasut Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index b9a9ca01014f..493cd9eb8aa8 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c @@ -354,7 +354,7 @@ static void mxs_mmc_adtc(struct mxs_mmc_host *host) struct dma_async_tx_descriptor *desc; struct scatterlist *sgl = data->sg, *sg; unsigned int sg_len = data->sg_len; - int i; + unsigned int i; unsigned short dma_data_dir, timeout; enum dma_transfer_direction slave_dirn;