]> Git Repo - qemu.git/commitdiff
fw_cfg: remove useless casts
authorLaurent Vivier <[email protected]>
Wed, 15 Jun 2016 16:14:35 +0000 (18:14 +0200)
committerMichael Tokarev <[email protected]>
Thu, 15 Sep 2016 12:32:22 +0000 (15:32 +0300)
This patch is the result of coccinelle script
scripts/coccinelle/typecast.cocci

CC: Laszlo Ersek <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
hw/nvram/fw_cfg.c

index 6a68e594d5f2d54b307ccaa1e7ba682b9b9c4096..1776b1b3c46ec9541a29d517ed50e0c7fffc8999 100644 (file)
@@ -180,7 +180,7 @@ static void fw_cfg_bootsplash(FWCfgState *s)
         temp = qemu_opt_get(opts, "splash-time");
         if (temp != NULL) {
             p = (char *)temp;
-            boot_splash_time = strtol(p, (char **)&p, 10);
+            boot_splash_time = strtol(p, &p, 10);
         }
     }
 
@@ -240,7 +240,7 @@ static void fw_cfg_reboot(FWCfgState *s)
         temp = qemu_opt_get(opts, "reboot-timeout");
         if (temp != NULL) {
             p = (char *)temp;
-            reboot_timeout = strtol(p, (char **)&p, 10);
+            reboot_timeout = strtol(p, &p, 10);
         }
     }
     /* validate the input */
This page took 0.027661 seconds and 4 git commands to generate.