summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-10 15:20:13 -0400
committerTom Rini <trini@konsulko.com>2017-05-12 08:37:38 -0400
commit9398b8ce5ff619be2b913a44f0b4705d444b1a19 (patch)
tree22fe449b773b0ba77f526ecb7050ddfef705fef1 /cmd
parentb37483c42e2717300e55c83347aa83c042db5d9b (diff)
downloadu-boot-9398b8ce5ff619be2b913a44f0b4705d444b1a19.tar.gz
cmd/io.c: Fix comparison of unsigned expression warning
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/io.c b/cmd/io.c
index c59148f413..ad05f7ca5a 100644
--- 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;