Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D1C1CA9EA0 for ; Tue, 22 Oct 2019 06:42:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E3F242089E for ; Tue, 22 Oct 2019 06:42:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YMCoktAI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3F242089E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=23tC46nYDUNX5Q3VI0hDl39cCCCWnasLESDs1a+4RxA=; b=YMCoktAIP+vSnx U5td2cnCWL6TfZVAwNFjmAVO5qfdcsAbVN2mZ+EpImD9wPheTMltijSRruVqPmhsZQ8oSgilxh3ET kBRLU/6RbUKs5A0yr6uC4cOm0kOQZLPqPxFTGf+ZVF/fxePKQh43J0q6vjBQRs08MTu3yP8FNTUnj vjiI/XYnVD9v+cIuZoxkFHdNUKtR81tMaa6zej9G3ESacpR62RQYXgV0jlh4poqn17UBWjEiViTFk oVpAODvYecw+3CdkT9OWWatXe4gR0Kujc+Y8DcBqGrio+Siz4XWJjliTL729E4YSix4mvLgnat3B/ 2MXdyYzdseuvxtF3Q9Gg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMnsK-0002Qn-CX; Tue, 22 Oct 2019 06:42:36 +0000 Received: from szxga07-in.huawei.com ([45.249.212.35] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMnsH-0002QL-94 for linux-arm-kernel@lists.infradead.org; Tue, 22 Oct 2019 06:42:34 +0000 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 79113D38A5E1D6BEEF27; Tue, 22 Oct 2019 14:42:26 +0800 (CST) Received: from [127.0.0.1] (10.177.251.225) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Tue, 22 Oct 2019 14:42:20 +0800 To: Herbert Xu , , , From: Yunfeng Ye Subject: [PATCH] crypto: arm64/aes-neonbs - remove redundant code in __xts_crypt() Message-ID: Date: Tue, 22 Oct 2019 14:42:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [10.177.251.225] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_234233_489367_59416D41 X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "hushiyuan@huawei.com" , "linfeilong@huawei.com" , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org A warning is found by the static code analysis tool: "Identical condition 'err', second condition is always false" Fix this by removing the redundant condition @err. Signed-off-by: Yunfeng Ye --- arch/arm64/crypto/aes-neonbs-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/crypto/aes-neonbs-glue.c b/arch/arm64/crypto/aes-neonbs-glue.c index ea873b8904c4..7b342db428b0 100644 --- a/arch/arm64/crypto/aes-neonbs-glue.c +++ b/arch/arm64/crypto/aes-neonbs-glue.c @@ -387,7 +387,7 @@ static int __xts_crypt(struct skcipher_request *req, bool encrypt, skcipher_walk_done(&walk, nbytes); } - if (err || likely(!tail)) + if (likely(!tail)) return err; /* handle ciphertext stealing */ -- 2.7.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel