[PATCH] KVM: selftests: Convert comma to semicolon
From: Chen Ni
Date: Tue Apr 28 2026 - 01:34:17 EST
Replace comma between expressions with semicolons.
Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it is seems best to use ';'
unless ',' is intended.
Found by inspection.
No functional change intended.
Compile tested only.
Signed-off-by: Chen Ni <nichen@xxxxxxxxxxx>
---
tools/testing/selftests/kvm/loongarch/pmu_test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/kvm/loongarch/pmu_test.c b/tools/testing/selftests/kvm/loongarch/pmu_test.c
index ec3fefb9ea97..bf3ca5e66bf3 100644
--- a/tools/testing/selftests/kvm/loongarch/pmu_test.c
+++ b/tools/testing/selftests/kvm/loongarch/pmu_test.c
@@ -167,8 +167,8 @@ int main(int argc, char *argv[])
vm_install_exception_handler(vm, EXCCODE_INT, guest_irq_handler);
sync_global_to_guest(vm, pmu_irq_count);
- attr.group = KVM_LOONGARCH_VM_FEAT_CTRL,
- attr.attr = KVM_LOONGARCH_VM_FEAT_PMU,
+ attr.group = KVM_LOONGARCH_VM_FEAT_CTRL;
+ attr.attr = KVM_LOONGARCH_VM_FEAT_PMU;
ret = ioctl(vm->fd, KVM_HAS_DEVICE_ATTR, &attr);
--
2.43.0