Skip to contentSkip to conversation

arch:powerpc:kvm: remove unnecessary type castings

PATCH Applied Nour-eddine Taleb 2 participants 2 messages Mar 3, 2022 – Mar 8, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch:powerpc:kvm: remove unnecessary type castings

remove unnecessary castings, from "void *" to "struct kvmppc_xics *"

---
 arch/powerpc/kvm/book3s_xics.c        | 2 +-
 arch/powerpc/kvm/book3s_xive.c        | 2 +-
 arch/powerpc/kvm/book3s_xive_native.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/kvm/book3s_xics.c +1 -1
index ebd5d920de8c..ec208d0c8d13 100644
@@ -1440,7 +1440,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);
 }
arch/powerpc/kvm/book3s_xive.c +1 -1
index 225008882958..0c1f4819884c 100644
@@ -2368,7 +2368,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);
arch/powerpc/kvm/book3s_xive_native.c +1 -1
index 99db9ac49901..1405b3f4e94e 100644
@@ -1276,7 +1276,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);
Signature · 1 line
2.33.1