Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5246434ybg; Tue, 22 Oct 2019 00:01:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoqWAptJ3wVNaRjsyJhsoRt6ESoPAgKg+Moki4C6DXcBo9frr8uz3jLvIeX9kW3I0YUDsy X-Received: by 2002:a50:bac2:: with SMTP id x60mr29072164ede.96.1571727678044; Tue, 22 Oct 2019 00:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571727678; cv=none; d=google.com; s=arc-20160816; b=bzahdJ+XtjLxODu260QUaHduNSxPbYwcHCtdUllfGzfUjJ7lskrzvE1svvvb7aeL6C 5A3e/xHtZ9DFPWXc24n3L9rZJn4S3rjiQ2sXNMZwmfXomsBlZuUCvpDJR6djfL3onlKM QM2Ci4DZ3XuJmfRyg1UOwqeMUAt7bY6p+inWM1MBL6zAvbZI/JrA2JoUV601Bl77kZ+Q +PPt3Xr90t3nRDbTr1/2MzVgcUDQ/vhsBy1t1bMqo1X1oW7WIEmWXMDvqAF/NUrmHjUf XtIY7KeY+F8BrCShNr9K/xo1UodOvp/8Ihdryconxr3g8p1PVQGhXHSr/Oe7ZjyIPzl4 nkRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to; bh=I75wpUbFwjF/0uKHahZ9Qoa4DCEkS+q+j5F4KEQhTGw=; b=uh8UmxMvuQVvEb4nbutqTANLiNzKKm9kxydYXwrH9e3n2Rccs3Uuo/9FVOXoepnzfe kPxRF/BvgpgT4ON7VKDX78TDqFGIXqN2ej/lpGgBYAEeKIXGrH50S3ki/9niKieQzWzl OcLKyQomd9DEpX65OHIUWXcpZU88rZD6Rmd2KB/0jYhcLffowcENdMBPY1yocUzQ3tvJ mhbPQStp41ExF3nLB948WzZvRjzTCKdM3w4qwpI25EZp3WeyCGgrJq1sbNMxCNxbzPGX sn4A9aftBH7V05RJiZ5tQawf7HD9Lb1tCPlhYUlhv8iaHOMipy9oRil2ymuft7RVdd5f 5KDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p43si11584580edc.368.2019.10.22.00.00.45; Tue, 22 Oct 2019 00:01:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387586AbfJVGm2 (ORCPT + 99 others); Tue, 22 Oct 2019 02:42:28 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:53554 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729573AbfJVGm2 (ORCPT ); Tue, 22 Oct 2019 02:42:28 -0400 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 , , , CC: , , , "hushiyuan@huawei.com" , "linfeilong@huawei.com" 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-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.251.225] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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