]> git.sur5r.net Git - u-boot/blobdiff - cmd/cbfs.c
test/py: Make print statements python 3.x safe
[u-boot] / cmd / cbfs.c
index 799ba01fcc8efbfb14a6a5b5f80947e37cb23d22..ece790e56e4fab531a7e377f99c8144a0525b398 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -22,7 +21,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;