Received: from eggs.gnu.org ([2001:4830:134:3::10]:39894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDDmC-0002fi-Hq for qemu-devel@nongnu.org; Wed, 15 Jun 2016 12:34:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDDm6-0000Vd-EA for qemu-devel@nongnu.org; Wed, 15 Jun 2016 12:34:48 -0400 References: <1466007277-17525-1-git-send-email-lvivier@redhat.com> <1466007277-17525-6-git-send-email-lvivier@redhat.com> From: Laszlo Ersek Message-ID: <902c6fb3-967e-9643-5df9-853a83c25649@redhat.com> Date: Wed, 15 Jun 2016 18:34:39 +0200 MIME-Version: 1.0 In-Reply-To: <1466007277-17525-6-git-send-email-lvivier@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/7] fw_cfg: remove useless casts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-trivial@nongnu.org, qemu-devel@nongnu.org On 06/15/16 18:14, Laurent Vivier wrote: > 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 */ > Reviewed-by: Laszlo Ersek