Re: [PATCH] mmc: sdhci: fix the wrong type of curr

2014-08-13 Thread Ulf Hansson
On 1 August 2014 08:00, Chuanxiao Dong wrote: > curr should use signed type since it will contain the returned > value which is possible to be a negative value. Using u32 will > make the returned value to be true even there is a negative result. > Change to use int instead of u32 > > Signed-off-by

RE: [PATCH] mmc: sdhci: fix the wrong type of curr

2014-08-12 Thread Dong, Chuanxiao
p.org; ulf.hans...@linaro.org > Subject: [PATCH] mmc: sdhci: fix the wrong type of curr > > curr should use signed type since it will contain the returned value which is > possible to be a negative value. Using u32 will make the returned value to be > true even there is a negative result.

[PATCH] mmc: sdhci: fix the wrong type of curr

2014-07-31 Thread Chuanxiao Dong
curr should use signed type since it will contain the returned value which is possible to be a negative value. Using u32 will make the returned value to be true even there is a negative result. Change to use int instead of u32 Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c |2 +-