Skip to content
Snippets Groups Projects
Commit 33222c8a authored by Andre Heider's avatar Andre Heider Committed by Simon Glass
Browse files

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: default avatarAndre Heider <a.heider@gmail.com>
Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
parent 1e656ad0
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc, ...@@ -22,7 +22,7 @@ static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc,
return 0; return 0;
} }
if (argc == 2) { if (argc == 2) {
end_of_rom = (int)simple_strtoul(argv[1], &ep, 16); end_of_rom = simple_strtoul(argv[1], &ep, 16);
if (*ep) { if (*ep) {
puts("\n** Invalid end of ROM **\n"); puts("\n** Invalid end of ROM **\n");
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment