OSDN Git Service

s390x: remove useless cast
authorLaurent Vivier <lvivier@redhat.com>
Wed, 15 Jun 2016 16:14:33 +0000 (18:14 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 15 Sep 2016 12:32:22 +0000 (15:32 +0300)
This patch is the result of coccinelle script
scripts/coccinelle/typecast.cocci

CC: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/s390x/sclp.c

index 48e38b2..e741da1 100644 (file)
@@ -426,7 +426,7 @@ int sclp_service_call(CPUS390XState *env, uint64_t sccb, uint32_t code)
         goto out;
     }
 
-    sclp_c->execute(sclp, (SCCB *)&work_sccb, code);
+    sclp_c->execute(sclp, &work_sccb, code);
 
     cpu_physical_memory_write(sccb, &work_sccb,
                               be16_to_cpu(work_sccb.h.length));