aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/omap_synctimer.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-09 15:02:55 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-01-12 17:15:09 +0000
commita75ed3c43064528f3409f0be286b62b9c3a47218 (patch)
treefdc3c4cc20b210a378ac7bea9bb9c3cefff1b965 /hw/timer/omap_synctimer.c
parent28180159ecf38d097475a5429474a4be9d2a24b8 (diff)
downloadqemu-a75ed3c43064528f3409f0be286b62b9c3a47218.zip
qemu-a75ed3c43064528f3409f0be286b62b9c3a47218.tar.gz
qemu-a75ed3c43064528f3409f0be286b62b9c3a47218.tar.bz2
hw/arm/omap: Drop useless casts from void * to pointer
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230109140306.23161-4-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/omap_synctimer.c')
-rw-r--r--hw/timer/omap_synctimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/omap_synctimer.c b/hw/timer/omap_synctimer.c
index 72b9979..d93a934 100644
--- a/hw/timer/omap_synctimer.c
+++ b/hw/timer/omap_synctimer.c
@@ -39,7 +39,7 @@ void omap_synctimer_reset(struct omap_synctimer_s *s)
static uint32_t omap_synctimer_readw(void *opaque, hwaddr addr)
{
- struct omap_synctimer_s *s = (struct omap_synctimer_s *) opaque;
+ struct omap_synctimer_s *s = opaque;
switch (addr) {
case 0x00: /* 32KSYNCNT_REV */
@@ -55,7 +55,7 @@ static uint32_t omap_synctimer_readw(void *opaque, hwaddr addr)
static uint32_t omap_synctimer_readh(void *opaque, hwaddr addr)
{
- struct omap_synctimer_s *s = (struct omap_synctimer_s *) opaque;
+ struct omap_synctimer_s *s = opaque;
uint32_t ret;
if (addr & 2)