[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 23/27] fw_cfg: remove useless casts
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 23/27] fw_cfg: remove useless casts |
Date: |
Wed, 14 Sep 2016 10:58:49 +0300 |
From: Laurent Vivier <address@hidden>
This patch is the result of coccinelle script
scripts/coccinelle/typecast.cocci
CC: Laszlo Ersek <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Laszlo Ersek <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
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 6a68e59..1776b1b 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.1.4
- [Qemu-devel] [PULL 09/27] MAINTAINERS: Add some header files to the PC chipset section, (continued)
- [Qemu-devel] [PULL 09/27] MAINTAINERS: Add some header files to the PC chipset section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 13/27] ivshmem: Delete duplicate debug message, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 14/27] timer: update comments, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 04/27] MAINTAINERS: Add include/hw/unicore32/ to UniCore32 section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 06/27] MAINTAINERS: Add include/hw/sh4/ to SH4 section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 22/27] tricore: remove useless cast, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 18/27] curl: Operate on zero-length file, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 25/27] win32: don't run subprocess tests on Mingw32 platform, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 01/27] Remove remainders of HPPA backend, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 27/27] mptsas: change .realize function name, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 23/27] fw_cfg: remove useless casts,
Michael Tokarev <=
- [Qemu-devel] [PULL 07/27] MAINTAINERS: Add include/sysemu/cpus.h, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 21/27] s390x: remove useless cast, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 10/27] MAINTAINERS: Fix up F: entry bit rot, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 03/27] ui/console: Fix non-working backspace key in monitor of gtk UI, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 26/27] linux-user/qemu.h: change malloc to g_malloc, free to g_free, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 19/27] coccinelle: add a script to remove useless casts, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 05/27] MAINTAINERS: Add include/hw/tricore/ to TriCore section, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 08/27] MAINTAINERS: Fix wildcard for scsi headers, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 16/27] cpus: update comments, Michael Tokarev, 2016/09/14
- [Qemu-devel] [PULL 20/27] linux-user,s390x: remove useless cast, Michael Tokarev, 2016/09/14