diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-09 15:02:55 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2023-01-12 17:15:09 +0000 |
| commit | a75ed3c43064528f3409f0be286b62b9c3a47218 (patch) | |
| tree | fdc3c4cc20b210a378ac7bea9bb9c3cefff1b965 /hw/timer/omap_synctimer.c | |
| parent | 28180159ecf38d097475a5429474a4be9d2a24b8 (diff) | |
| download | focaccia-qemu-a75ed3c43064528f3409f0be286b62b9c3a47218.tar.gz focaccia-qemu-a75ed3c43064528f3409f0be286b62b9c3a47218.zip | |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/omap_synctimer.c b/hw/timer/omap_synctimer.c index 72b997939b..d93a9344ed 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) |