diff options
| author | Michal Luczaj <mhal@rbox.co> | 2023-06-05 22:01:21 +0200 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2023-06-06 17:13:55 -0700 |
| commit | e12fa4b92a07f4274ffa02e581d059a7869dd50e (patch) | |
| tree | 9efbb1e24ba728e393a91ad76b52f655334248ca /arch/x86/kvm/svm/svm.c | |
| parent | 056b9919a16aedc560e6756a235ef5a62a68db05 (diff) | |
| download | linux-e12fa4b92a07f4274ffa02e581d059a7869dd50e.tar.gz linux-e12fa4b92a07f4274ffa02e581d059a7869dd50e.tar.bz2 linux-e12fa4b92a07f4274ffa02e581d059a7869dd50e.zip | |
KVM: x86: Clean up: remove redundant bool conversions
As test_bit() returns bool, explicitly converting result to bool is
unnecessary. Get rid of '!!'.
No functional change intended.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://lore.kernel.org/r/20230605200158.118109-1-mhal@rbox.co
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
| -rw-r--r-- | arch/x86/kvm/svm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 924609d63f8a..02183ebc0e16 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -752,7 +752,7 @@ static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr) BUG_ON(offset == MSR_INVALID); - return !!test_bit(bit_write, &tmp); + return test_bit(bit_write, &tmp); } static void set_msr_interception_bitmap(struct kvm_vcpu *vcpu, u32 *msrpm, |
