Skip to content

Commit e40b38a

Browse files
noureddine-talebmpe
authored andcommitted
KVM: PPC: Book3S HV: remove unnecessary casts
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
1 parent 4feb74a commit e40b38a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

arch/powerpc/kvm/book3s_xics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ static int kvmppc_xics_create(struct kvm_device *dev, u32 type)
14311431

14321432
static void kvmppc_xics_init(struct kvm_device *dev)
14331433
{
1434-
struct kvmppc_xics *xics = (struct kvmppc_xics *)dev->private;
1434+
struct kvmppc_xics *xics = dev->private;
14351435

14361436
xics_debugfs_init(xics);
14371437
}

arch/powerpc/kvm/book3s_xive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ static void xive_debugfs_init(struct kvmppc_xive *xive)
23622362

23632363
static void kvmppc_xive_init(struct kvm_device *dev)
23642364
{
2365-
struct kvmppc_xive *xive = (struct kvmppc_xive *)dev->private;
2365+
struct kvmppc_xive *xive = dev->private;
23662366

23672367
/* Register some debug interfaces */
23682368
xive_debugfs_init(xive);

arch/powerpc/kvm/book3s_xive_native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static void xive_native_debugfs_init(struct kvmppc_xive *xive)
12671267

12681268
static void kvmppc_xive_native_init(struct kvm_device *dev)
12691269
{
1270-
struct kvmppc_xive *xive = (struct kvmppc_xive *)dev->private;
1270+
struct kvmppc_xive *xive = dev->private;
12711271

12721272
/* Register some debug interfaces */
12731273
xive_native_debugfs_init(xive);

0 commit comments

Comments
 (0)