]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: cbfs: fix reading the end_of_rom pointer for 64bit archs
authorAndre Heider <a.heider@gmail.com>
Thu, 15 Feb 2018 06:40:10 +0000 (07:40 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 31 Mar 2018 08:00:03 +0000 (16:00 +0800)
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>
cmd/cbfs.c

index 799ba01fcc8efbfb14a6a5b5f80947e37cb23d22..736f8c4527dfb9807a7edc7443676b6869a55585 100644 (file)
@@ -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;