mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] LoongArch: KVM: remove unused returns.
@ 2025-09-04  4:26 cuitao
  2025-09-04  6:15 ` Bibo Mao
  2025-09-04  6:34 ` Tiezhu Yang
  0 siblings, 2 replies; 7+ messages in thread
From: cuitao @ 2025-09-04  4:26 UTC (permalink / raw)
  To: zhaotianrui, maobibo, chenhuacai, loongarch
  Cc: kernel, kvm, linux-kernel, cuitao

The default branch has already handled all undefined cases,
so the final return statement is redundant.

Signed-off-by: cuitao <cuitao@kylinos.cn>
---
 arch/loongarch/kvm/exit.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/loongarch/kvm/exit.c b/arch/loongarch/kvm/exit.c
index 2ce41f93b2a4..e501867740b1 100644
--- a/arch/loongarch/kvm/exit.c
+++ b/arch/loongarch/kvm/exit.c
@@ -778,9 +778,7 @@ static long kvm_save_notify(struct kvm_vcpu *vcpu)
 		return 0;
 	default:
 		return KVM_HCALL_INVALID_CODE;
-	};
-
-	return KVM_HCALL_INVALID_CODE;
+	}
 };
 
 /*
-- 
2.48.1


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

end of thread, other threads:[~2025-09-04  9:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-04  4:26 [PATCH] LoongArch: KVM: remove unused returns cuitao
2025-09-04  6:15 ` Bibo Mao
2025-09-04  6:25   ` Huacai Chen
2025-09-04  6:34 ` Tiezhu Yang
2025-09-04  8:13   ` cuitao
2025-09-04  8:20     ` Huacai Chen
2025-09-04  8:57       ` Bibo Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®