mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH resend] drivers: mci: Fix compilation warning.
@ 2010-11-25 13:30 Marek Belisko
  0 siblings, 0 replies; only message in thread
From: Marek Belisko @ 2010-11-25 13:30 UTC (permalink / raw)
  To: barebox; +Cc: Marek Belisko

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>
---
 drivers/mci/mci-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index a8aa486..04a1e4c 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -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);
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-25 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-25 13:30 [PATCH resend] drivers: mci: Fix compilation warning Marek Belisko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox