mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13: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
|
@ -67,10 +67,9 @@ struct omap_uart_s *omap_uart_init(hwaddr base,
|
|||
return s;
|
||||
}
|
||||
|
||||
static uint64_t omap_uart_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
static uint64_t omap_uart_read(void *opaque, hwaddr addr, unsigned size)
|
||||
{
|
||||
struct omap_uart_s *s = (struct omap_uart_s *) opaque;
|
||||
struct omap_uart_s *s = opaque;
|
||||
|
||||
if (size == 4) {
|
||||
return omap_badwidth_read8(opaque, addr);
|
||||
|
@ -108,7 +107,7 @@ static uint64_t omap_uart_read(void *opaque, hwaddr addr,
|
|||
static void omap_uart_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_uart_s *s = (struct omap_uart_s *) opaque;
|
||||
struct omap_uart_s *s = opaque;
|
||||
|
||||
if (size == 4) {
|
||||
omap_badwidth_write8(opaque, addr, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue