]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: fix the wrong type of curr
authorChuanxiao.Dong <chuanxiao.dong@intel.com>
Fri, 1 Aug 2014 06:00:13 +0000 (14:00 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:00 +0000 (13:59 +0200)
commit4f7a443b0671bddb5c5b5c239611f1c930c5d642
tree681cc827daadff404aca6a4d11a28354a94311d7
parent00a5c9bc05a24983e8f7c809d176ed5b0ccb5da3
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.
Change to use int instead of u32

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c