Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp619109rwp; Wed, 12 Jul 2023 20:28:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFYefK6f95b62X0ZBKKtpfzZacAh8onITa9HrdysiU6oKEhC0j84/4b8O/yBfLmqdi9Ueg6 X-Received: by 2002:a17:907:9143:b0:991:e458:d16 with SMTP id l3-20020a170907914300b00991e4580d16mr175533ejs.72.1689218931382; Wed, 12 Jul 2023 20:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689218931; cv=none; d=google.com; s=arc-20160816; b=Q28DZ9E3GfzXq1/RmY2ZtYT2mfHudsSMRWVMAb7BqAun4kPTCWxNcl1ulZkxCxKfam A975KaS8brhTMbFVqKBO5/eEOq3mBKxe5AToLT+FPx+NWEcuDqFWTdpRWSKFZ8oFHbKN d6L/i0xhQakIs0LxM2YV5eqrIzURjNifJO3/EBKmdVyQnT24i2m5/4TUEaF52iiwdIlH vwclH2E8qZ5qTBjRmXVxMIMdmrBiR9nACJPJ1ajxBa5MCLR+841qCgdqxsAH66zO9vJ8 w65cZ5xmTXk/TJbQSJCkiykAJUcKZ4+bioGANSm/funF2EP5sX0T01nJ55XVPScJ8/4n 9yMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=5c9is966nIqO4YSMWYAOaP1rzL0Yl9LZ2qBoLTzPBog=; fh=woX8Cwyxt80QNVZ8pGXZpmixBgCiJIco9eJcQNQDBdo=; b=Vq/E/MmqaXebKjmwe6SydUzgxOxLBpSXXJ2pOjH6NQo2jg2z5DTLuMD8MyCamE6B5j pnAMs1e3TadKFxT7Vc9c7G0yhLUUBk2gU7aK9mwfi/Z/Y8HVZx8fgvrWBDBQYE0w3Uot iaZPTzVr2B8k7Jc9EJx0KiqQ+wBFqQcqNYyAxFUg8sXFhhfHPZpvyFYWcBMkGxvSnSV/ 3FcuAxeowRYrCN3NN2Kgzb1WDDPRnCtvDVZk/Wm3ZNYXnGp6rEmBj2YfBEsBwIFgpg3k TPQn4nSFl4V4ZlB+/VOtOHBpr+ZbscJw/vRofSeBrxBkRlAohIhNx5eTsD+WfR772AkF ARtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=cdPN4JJU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq17-20020a17090720d100b009938899a768si5913670ejb.530.2023.07.12.20.28.26; Wed, 12 Jul 2023 20:28:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=cdPN4JJU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232553AbjGMDDw (ORCPT + 99 others); Wed, 12 Jul 2023 23:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbjGMDDu (ORCPT ); Wed, 12 Jul 2023 23:03:50 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96B75171D for ; Wed, 12 Jul 2023 20:03:47 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1fZS54BfzBJkkL for ; Thu, 13 Jul 2023 11:03:44 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689217424; x=1691809425; bh=vC33ODhevtPw2XxKtonUFPkCRFb K3xlTcDVg2UQ4oi8=; b=cdPN4JJU8n+AxEqOGDqdy4BLQxYigHnPx8hpq23Fdfd 1mgqwx22m97tfw9gWF0wx2MqQt4wWPFm+5xa8MlYC3rIqAb9zaDAZPAt94X0lWxk JROtb/G4pmOjiD9QKVtHSFIsinE41oHutxilFhHiAuZWT94gb88MuqZrIPrDRgW/ soBLjg/yM1+oNjIDjRbJii/kJ944zyDrG2WlU9CYw+F/c/OkPGkEQZOaPUVmxTq8 82kc3/HOeqbW40oisJyWkPEHfsuRBqz81hzV3Aja8+grqSwdmx8Vfr4eg7JnJY2n kCttxW9MBkfDTP9pQPUinOmPm8/hE7cEFwLfxF7A0nA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id JniKFitXXnKU for ; Thu, 13 Jul 2023 11:03:44 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R1fZS0sb0zBJBXT; Thu, 13 Jul 2023 11:03:44 +0800 (CST) MIME-Version: 1.0 Date: Thu, 13 Jul 2023 11:03:44 +0800 From: chenqingyun001@208suo.com To: maz@kernel.org, oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org Cc: kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com Subject: [PATCH] KVM: arm64:Use #include instead of trailing whitespace braces {} are not necessary for any arm of this statement In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: X-Sender: chenqingyun001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org include is a generic Having extra spaces or tabs has no real effect If there is only one statement in the if branch, curly braces {} can be omitted Signed-off-by: Qingyun Chen --- arch/arm64/kvm/reset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c index b5dee8e57e77..4e6305dd1909 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -19,7 +19,7 @@ #include -#include +#include #include #include #include @@ -122,7 +122,7 @@ static int kvm_vcpu_finalize_sve(struct kvm_vcpu *vcpu) kfree(buf); return ret; } - + vcpu->arch.sve_state = buf; vcpu_set_flag(vcpu, VCPU_SVE_FINALIZED); return 0; @@ -308,9 +308,9 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu) switch (vcpu->arch.target) { default: - if (vcpu_el1_is_32bit(vcpu)) { + if (vcpu_el1_is_32bit(vcpu)) pstate = VCPU_RESET_PSTATE_SVC; - } else if (vcpu_has_nv(vcpu)) { + else if (vcpu_has_nv(vcpu)) { pstate = VCPU_RESET_PSTATE_EL2; } else { pstate = VCPU_RESET_PSTATE_EL1;