mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
|
@ -31,10 +31,9 @@ void omap_sdrc_reset(struct omap_sdrc_s *s)
|
|||
s->config = 0x10;
|
||||
}
|
||||
|
||||
static uint64_t omap_sdrc_read(void *opaque, hwaddr addr,
|
||||
unsigned size)
|
||||
static uint64_t omap_sdrc_read(void *opaque, hwaddr addr, unsigned size)
|
||||
{
|
||||
struct omap_sdrc_s *s = (struct omap_sdrc_s *) opaque;
|
||||
struct omap_sdrc_s *s = opaque;
|
||||
|
||||
if (size != 4) {
|
||||
return omap_badwidth_read32(opaque, addr);
|
||||
|
@ -89,7 +88,7 @@ static uint64_t omap_sdrc_read(void *opaque, hwaddr addr,
|
|||
static void omap_sdrc_write(void *opaque, hwaddr addr,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct omap_sdrc_s *s = (struct omap_sdrc_s *) opaque;
|
||||
struct omap_sdrc_s *s = opaque;
|
||||
|
||||
if (size != 4) {
|
||||
omap_badwidth_write32(opaque, addr, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue