MA-10586 [Android]u-boot: Remove build warning in cmd_fsl_caam.c
authorZhang Bo <bo.zhang@nxp.com>
Mon, 6 Nov 2017 06:44:53 +0000 (14:44 +0800)
committerZhang Bo <bo.zhang@nxp.com>
Wed, 8 Nov 2017 10:41:20 +0000 (18:41 +0800)
This build warning is because unnecessary conversion.

Change-Id: Icfad58b95b62c15021ff57370d73b644133f6697
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
common/cmd_fsl_caam.c

index 1cd7af7..07c226e 100644 (file)
@@ -40,7 +40,7 @@ static int do_caam(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        data_addr = (void *)simple_strtoul(argv[2], NULL, 16);
        blob_addr = (void *)simple_strtoul(argv[3], NULL, 16);
-       size      = (void *)simple_strtoul(argv[4], NULL, 10);
+       size      = simple_strtoul(argv[4], NULL, 10);
        if (size <= 48)
                return CMD_RET_USAGE;
 
@@ -74,7 +74,7 @@ static int do_caam(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        blob_addr = (void *)simple_strtoul(argv[2], NULL, 16);
        data_addr = (void *)simple_strtoul(argv[3], NULL, 16);
-       size      = (void *)simple_strtoul(argv[4], NULL, 10);
+       size      = simple_strtoul(argv[4], NULL, 10);
        if (size <= 48)
                return CMD_RET_USAGE;