9
0
Fork 0

drivers: mci: Fix compilation warning.

Fix compilation warning:
drivers/mci/mci-core.c:1002:
warning: comparison of distinct pointer types lacks a cast

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Marek Belisko 2010-11-25 14:30:57 +01:00 committed by Sascha Hauer
parent a894660cf1
commit 804e0b0084
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ static int mci_sd_read(struct device_d *disk_dev, uint64_t sector_start,
}
while (sector_count) {
int now = min(sector_count, 32);
int now = min(sector_count, 32U);
if (sector_start > MAX_BUFFER_NUMBER) {
pr_err("Cannot handle block number %lu. Too large!\n",
(unsigned)sector_start);