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>
This commit is contained in:
parent
1e656ad08c
commit
33222c8a2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user