All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: hyper-v: housekeeping: Remove unnecessary type cast
@ 2021-06-03 13:27 Siddharth Chandrasekaran
  2021-06-15 14:53 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Siddharth Chandrasekaran @ 2021-06-03 13:27 UTC (permalink / raw)
  To: Paolo Bonzini, Sean Christopherson, Vitaly Kuznetsov, Wanpeng Li,
	Jim Mattson, Joerg Roedel, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, x86, H. Peter Anvin
  Cc: Siddharth Chandrasekaran, kvm, linux-kernel

Remove unnecessary type cast of 'u8 instructions[]' to
'unsigned char *'.

Signed-off-by: Siddharth Chandrasekaran <sidcha@amazon.de>
---
 arch/x86/kvm/hyperv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c
index f00830e5202f..7d9eb13174b6 100644
--- a/arch/x86/kvm/hyperv.c
+++ b/arch/x86/kvm/hyperv.c
@@ -1252,7 +1252,7 @@ static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data,
 		i += 3;
 
 		/* ret */
-		((unsigned char *)instructions)[i++] = 0xc3;
+		instructions[i++] = 0xc3;
 
 		addr = data & HV_X64_MSR_HYPERCALL_PAGE_ADDRESS_MASK;
 		if (kvm_vcpu_write_guest(vcpu, addr, instructions, i))
-- 
2.17.1




Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: hyper-v: housekeeping: Remove unnecessary type cast
  2021-06-03 13:27 [PATCH] KVM: hyper-v: housekeeping: Remove unnecessary type cast Siddharth Chandrasekaran
@ 2021-06-15 14:53 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2021-06-15 14:53 UTC (permalink / raw)
  To: Siddharth Chandrasekaran
  Cc: Paolo Bonzini, Vitaly Kuznetsov, Wanpeng Li, Jim Mattson,
	Joerg Roedel, Thomas Gleixner, Ingo Molnar, Borislav Petkov, x86,
	H. Peter Anvin, kvm, linux-kernel

On Thu, Jun 03, 2021, Siddharth Chandrasekaran wrote:
> Remove unnecessary type cast of 'u8 instructions[]' to
> 'unsigned char *'.
> 
> Signed-off-by: Siddharth Chandrasekaran <sidcha@amazon.de>
> ---

Reviewed-by: Sean Christopherson <seanjc@google.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-15 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 13:27 [PATCH] KVM: hyper-v: housekeeping: Remove unnecessary type cast Siddharth Chandrasekaran
2021-06-15 14:53 ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.