KVM: PPC: Book3S HV: remove unnecessary casts
authorNour-eddine Taleb <kernel.noureddine@gmail.com>
Thu, 3 Mar 2022 14:34:16 +0000 (15:34 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 4 Mar 2022 01:58:46 +0000 (12:58 +1100)
Remove unnecessary casts, from "void *" to "struct kvmppc_xics *"

Signed-off-by: Nour-eddine Taleb <kernel.noureddine@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220303143416.201851-1-kernel.noureddine@gmail.com
arch/powerpc/kvm/book3s_xics.c
arch/powerpc/kvm/book3s_xive.c
arch/powerpc/kvm/book3s_xive_native.c

index 306c85e..ab6d37d 100644 (file)
@@ -1431,7 +1431,7 @@ static int kvmppc_xics_create(struct kvm_device *dev, u32 type)
 
 static void kvmppc_xics_init(struct kvm_device *dev)
 {
-       struct kvmppc_xics *xics = (struct kvmppc_xics *)dev->private;
+       struct kvmppc_xics *xics = dev->private;
 
        xics_debugfs_init(xics);
 }
index 37a56cb..c0ce553 100644 (file)
@@ -2362,7 +2362,7 @@ static void xive_debugfs_init(struct kvmppc_xive *xive)
 
 static void kvmppc_xive_init(struct kvm_device *dev)
 {
-       struct kvmppc_xive *xive = (struct kvmppc_xive *)dev->private;
+       struct kvmppc_xive *xive = dev->private;
 
        /* Register some debug interfaces */
        xive_debugfs_init(xive);
index 3c2b128..f81ba6f 100644 (file)
@@ -1267,7 +1267,7 @@ static void xive_native_debugfs_init(struct kvmppc_xive *xive)
 
 static void kvmppc_xive_native_init(struct kvm_device *dev)
 {
-       struct kvmppc_xive *xive = (struct kvmppc_xive *)dev->private;
+       struct kvmppc_xive *xive = dev->private;
 
        /* Register some debug interfaces */
        xive_native_debugfs_init(xive);