projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b37483c
)
cmd/io.c: Fix comparison of unsigned expression warning
author
Tom Rini
<trini@konsulko.com>
Wed, 10 May 2017 19:20:13 +0000
(15:20 -0400)
committer
Tom Rini
<trini@konsulko.com>
Fri, 12 May 2017 12:37:38 +0000
(08:37 -0400)
The function cmd_get_data_size() returns an int and not unsigned. So we
should assign it to an int rather than unsigned so that we can later
compare the return value. Reported by clang-3.8.
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/io.c
patch
|
blob
|
history
diff --git
a/cmd/io.c
b/cmd/io.c
index c59148f413cf2ef3873d1f4016ae08e3d16d3850..ad05f7ca5a32a62f115748c1b0972e89f678e15d 100644
(file)
--- a/
cmd/io.c
+++ b/
cmd/io.c
@@
-46,7
+46,8
@@
int do_io_iod(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
int do_io_iow(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
- ulong addr, size, val;
+ ulong addr, val;
+ int size;
if (argc != 3)
return CMD_RET_USAGE;