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: stable@vger.kernel.org Reviewed-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Tao Cui <cuitao@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent ac398f5 commit 091b29d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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)