projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b388233
)
ARM: orion5x: fix compiler cast warnings in ts78xx-setup.c
author
Alexander Clouter
<alex@digriz.org.uk>
Sat, 5 Mar 2011 11:31:04 +0000
(11:31 +0000)
committer
Nicolas Pitre
<nico@fluxnic.net>
Sat, 5 Mar 2011 19:47:35 +0000
(14:47 -0500)
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
[np: used min_t() as suggested by Sergei Shtylyov <sshtylyov@mvista.com>]
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/mach-orion5x/ts78xx-setup.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-orion5x/ts78xx-setup.c
b/arch/arm/mach-orion5x/ts78xx-setup.c
index 3f2e1cdf11f6389dbce20f86584055508c581227..8554707d20a9ec060e1ce5739e2f4377ed57457e 100644
(file)
--- a/
arch/arm/mach-orion5x/ts78xx-setup.c
+++ b/
arch/arm/mach-orion5x/ts78xx-setup.c
@@
-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;