summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2018-02-15 07:40:10 +0100
committerSimon Glass <sjg@chromium.org>2018-03-31 16:00:03 +0800
commit33222c8a2cef36d0651d85100d9e0eadbe73884c (patch)
tree997602d4f9c8da9a92139e3e1bdd6bf42173a3bc /cmd
parent1e656ad08c92c7b9db86bcc16eeb64fe5679f7c9 (diff)
downloadu-boot-33222c8a2cef36d0651d85100d9e0eadbe73884c.tar.gz
u-boot-33222c8a2cef36d0651d85100d9e0eadbe73884c.tar.xz
u-boot-33222c8a2cef36d0651d85100d9e0eadbe73884c.zip
cmd: cbfs: fix reading the end_of_rom pointer for 64bit archs
The cast breaks the pointer on 64bit archs, so lets get rid of it. Signed-off-by: Andre Heider <a.heider@gmail.com> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cbfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cbfs.c b/cmd/cbfs.c
index 799ba01fcc..736f8c4527 100644
--- a/cmd/cbfs.c
+++ b/cmd/cbfs.c
@@ -22,7 +22,7 @@ static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc,
return 0;
}
if (argc == 2) {
- end_of_rom = (int)simple_strtoul(argv[1], &ep, 16);
+ end_of_rom = simple_strtoul(argv[1], &ep, 16);
if (*ep) {
puts("\n** Invalid end of ROM **\n");
return 1;