aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-09 15:02:59 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-01-12 17:15:09 +0000
commit66f02065b7e7ce91eff76994e072cf3325d9868f (patch)
tree2da1e687eec9f0bd12272adfd8ead5868d3cae34 /hw/arm
parentbded15c91c2cf3f1b9e27b06a75ac74570fb4fae (diff)
downloadqemu-66f02065b7e7ce91eff76994e072cf3325d9868f.zip
qemu-66f02065b7e7ce91eff76994e072cf3325d9868f.tar.gz
qemu-66f02065b7e7ce91eff76994e072cf3325d9868f.tar.bz2
hw/arm/stellaris: 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-8-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/stellaris.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c
index a9e96c3..051c242 100644
--- a/hw/arm/stellaris.c
+++ b/hw/arm/stellaris.c
@@ -749,7 +749,7 @@ static void stellaris_adc_update(stellaris_adc_state *s)
static void stellaris_adc_trigger(void *opaque, int irq, int level)
{
- stellaris_adc_state *s = (stellaris_adc_state *)opaque;
+ stellaris_adc_state *s = opaque;
int n;
for (n = 0; n < 4; n++) {
@@ -785,7 +785,7 @@ static void stellaris_adc_reset(stellaris_adc_state *s)
static uint64_t stellaris_adc_read(void *opaque, hwaddr offset,
unsigned size)
{
- stellaris_adc_state *s = (stellaris_adc_state *)opaque;
+ stellaris_adc_state *s = opaque;
/* TODO: Implement this. */
if (offset >= 0x40 && offset < 0xc0) {
@@ -833,7 +833,7 @@ static uint64_t stellaris_adc_read(void *opaque, hwaddr offset,
static void stellaris_adc_write(void *opaque, hwaddr offset,
uint64_t value, unsigned size)
{
- stellaris_adc_state *s = (stellaris_adc_state *)opaque;
+ stellaris_adc_state *s = opaque;
/* TODO: Implement this. */
if (offset >= 0x40 && offset < 0xc0) {