mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
28180159ec
commit
a75ed3c430
18 changed files with 142 additions and 163 deletions
|
@ -66,7 +66,7 @@
|
|||
static uint64_t static_read(void *opaque, hwaddr offset,
|
||||
unsigned size)
|
||||
{
|
||||
uint32_t *val = (uint32_t *) opaque;
|
||||
uint32_t *val = opaque;
|
||||
uint32_t mask = (4 / size) - 1;
|
||||
|
||||
return *val >> ((offset & mask) << 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue