Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53936c56 authored by Alexander Clouter's avatar Alexander Clouter Committed by Nicolas Pitre
Browse files

ARM: orion5x: fix compiler cast warnings in ts78xx-setup.c



Signed-off-by: default avatarAlexander Clouter <alex@digriz.org.uk>
[np: used min_t() as suggested by Sergei Shtylyov <sshtylyov@mvista.com>]
Signed-off-by: default avatarNicolas Pitre <nico@fluxnic.net>
parent b3882330
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd,
	int sz;

	if (off) {
		sz = min(4 - off, len);
		sz = min_t(int, 4 - off, len);
		writesb(io_base, buf, sz);
		buf += sz;
		len -= sz;
@@ -227,7 +227,7 @@ static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd,
	int sz;

	if (off) {
		sz = min(4 - off, len);
		sz = min_t(int, 4 - off, len);
		readsb(io_base, buf, sz);
		buf += sz;
		len -= sz;