From cc80db955d0551c2456692da6176530dd27e08ed Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 1 Oct 2021 16:01:47 +0200 Subject: executor: check for single-line compound statements Historically the code base does not use single-line compound statements ({} around single-line blocks). But there are few precedents creeped into already. Add a check to keep the code base consistent. --- executor/common_kvm_ppc64.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'executor/common_kvm_ppc64.h') diff --git a/executor/common_kvm_ppc64.h b/executor/common_kvm_ppc64.h index 1063e587b..82d781772 100644 --- a/executor/common_kvm_ppc64.h +++ b/executor/common_kvm_ppc64.h @@ -195,9 +195,8 @@ static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volat memreg.guest_phys_addr = i * page_size; memreg.memory_size = page_size; memreg.userspace_addr = (uintptr_t)host_mem + i * page_size; - if (ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg)) { + if (ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &memreg)) return -1; - } } struct kvm_regs regs; -- cgit mrf-deployment