Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2432450pxu; Fri, 18 Dec 2020 13:09:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyH9qVfE341nykdsxqlGRciivRd8ThaALrdzY0k3mW91glbQKBKDbfQQa2sSL8IOMnoo350 X-Received: by 2002:a17:906:fa8b:: with SMTP id lt11mr5985127ejb.94.1608325785507; Fri, 18 Dec 2020 13:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608325785; cv=none; d=google.com; s=arc-20160816; b=iC5WTbrlHbS+mJRZzFSgDqYb//hedPwuncwgbF0ZNjENIFfRhQNTUu6wTZ5dRO+j0l ZenGd80wcWvGkLD4DTszp8izCJDoaL3Pmt5CtLRy/e1Mq2V0Fm4xE5aBP+KZRxBTrJT4 Xai+i9As7484Ijp2ghAF+xzhaoueWpQ3KBLR8MkcFIwLyJB1L4x4Gsm6xZDOSb+v8a2I 6fGEqPYfTD/kEVuLWx5HIL6hr3L5r8N0hsEBOkzBmUraAXHj8dvj3OmDoLtkMlDiAEQo PlOOmhGN4h/7Qk8Dn8hInXba2TchzVQ4jyN0QSi4H0w5nx+L3rOBzhZjC1yYHVLcdpXj ut2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=MfzmcpPzaf45UG939W/6KKPU4uCU3GSaxbUUwvoRWWc=; b=Sh4oXDVEgk+OY6fw0aa27zGbwafJAvlrJ1OQlZ8leJ325lk19Vdj2Jb15Sgos+kCOU XMFdoMIJCIj3gH5X2iTp0p8noJ+tCCTguMCQmA2xUMmVELOEkjG70IaJNO3J+TDRD7NP St4Ef6yfa7Lb5jH3j8vlHVnqg2pxfHgoY96UcuiZRfiJe8zbWS3NgWi90li013YRcetm lxjskFBybGZx7b2lwKd1Wu4zIl2sj5LaFw4med/v9wRKyZSjYHlwOQLW3KQiM027Mqzj BnVj+KrqaLz+2CePRfHJ9bnu1I8tukkcL30l21lLg3DndzyEmlFot8f4NaGHcUuqnuZf rRsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si5320227ejs.76.2020.12.18.13.09.26; Fri, 18 Dec 2020 13:09:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726175AbgLRVHy (ORCPT + 99 others); Fri, 18 Dec 2020 16:07:54 -0500 Received: from mga06.intel.com ([134.134.136.31]:16592 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbgLRVHy (ORCPT ); Fri, 18 Dec 2020 16:07:54 -0500 IronPort-SDR: 7VL/waLeBo6JyMtqCCspLNk05Wdahvl6X7S5tOIayybABsOAAikU9tU44HS3eYHtGYuN0RBbwc DKkrv6FFnIRA== X-IronPort-AV: E=McAfee;i="6000,8403,9839"; a="237075274" X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="237075274" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 13:06:43 -0800 IronPort-SDR: qqbYdG60+DF5x09WZY9tS/bYLpt+wIFxGHEolQEKmOGsYYhngLJTaa6jhe71r6o/1C8wHB8lZ8 xkXDG3k+zlxA== X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="370785959" Received: from megha-z97x-ud7-th.sc.intel.com ([143.183.85.154]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 18 Dec 2020 13:06:43 -0800 From: Megha Dey To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, ravi.v.shankar@intel.com, tim.c.chen@intel.com, andi.kleen@intel.com, dave.hansen@intel.com, megha.dey@intel.com, wajdi.k.feghali@intel.com, greg.b.tucker@intel.com, robert.a.kasten@intel.com, rajendrakumar.chinnaiyan@intel.com, tomasz.kantecki@intel.com, ryan.d.saffores@intel.com, ilya.albrekht@intel.com, kyung.min.park@intel.com, tony.luck@intel.com, ira.weiny@intel.com Subject: [RFC V1 6/7] crypto: aesni - fix coding style for if/else block Date: Fri, 18 Dec 2020 13:11:03 -0800 Message-Id: <1608325864-4033-7-git-send-email-megha.dey@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608325864-4033-1-git-send-email-megha.dey@intel.com> References: <1608325864-4033-1-git-send-email-megha.dey@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The if else block in aesni_init does not follow required coding conventions. If other conditionals are added to the block, it becomes very difficult to parse. Use the correct coding style instead. Signed-off-by: Megha Dey --- arch/x86/crypto/aesni-intel_glue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index f45059e..9e56cdf 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c @@ -1117,8 +1117,7 @@ static int __init aesni_init(void) if (boot_cpu_has(X86_FEATURE_AVX2)) { pr_info("AVX2 version of gcm_enc/dec engaged.\n"); aesni_gcm_tfm = &aesni_gcm_tfm_avx_gen4; - } else - if (boot_cpu_has(X86_FEATURE_AVX)) { + } else if (boot_cpu_has(X86_FEATURE_AVX)) { pr_info("AVX version of gcm_enc/dec engaged.\n"); aesni_gcm_tfm = &aesni_gcm_tfm_avx_gen2; } else { -- 2.7.4