Received: from eggs.gnu.org ([2001:4830:134:3::10]:33717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDDTh-0005xc-8a for qemu-devel@nongnu.org; Wed, 15 Jun 2016 12:15:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDDTb-0003ry-DI for qemu-devel@nongnu.org; Wed, 15 Jun 2016 12:15:40 -0400 From: Laurent Vivier Date: Wed, 15 Jun 2016 18:14:35 +0200 Message-Id: <1466007277-17525-6-git-send-email-lvivier@redhat.com> In-Reply-To: <1466007277-17525-1-git-send-email-lvivier@redhat.com> References: <1466007277-17525-1-git-send-email-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH 5/7] fw_cfg: remove useless casts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Cc: Laurent Vivier , Laszlo Ersek This patch is the result of coccinelle script scripts/coccinelle/typecast.cocci CC: Laszlo Ersek Signed-off-by: Laurent Vivier --- hw/nvram/fw_cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c index 74a0079..9d84129 100644 --- a/hw/nvram/fw_cfg.c +++ b/hw/nvram/fw_cfg.c @@ -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 */ -- 2.5.5