Skip to content

Commit 091b29d

Browse files
Tao Cuichenhuacai
authored andcommitted
LoongArch: KVM: Remove unused returns and semicolons
The default branch has already handled all undefined cases, so the final return statement is redundant. Redundant semicolons are removed, too. Cc: [email protected] Reviewed-by: Bibo Mao <[email protected]> Signed-off-by: Tao Cui <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent ac398f5 commit 091b29d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

arch/loongarch/kvm/exit.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -778,10 +778,8 @@ static long kvm_save_notify(struct kvm_vcpu *vcpu)
778778
return 0;
779779
default:
780780
return KVM_HCALL_INVALID_CODE;
781-
};
782-
783-
return KVM_HCALL_INVALID_CODE;
784-
};
781+
}
782+
}
785783

786784
/*
787785
* kvm_handle_lsx_disabled() - Guest used LSX while disabled in root.

0 commit comments

Comments
 (0)