Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5322709ybg; Tue, 22 Oct 2019 01:12:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxVZGgAzsSpb4pYuDGG3cQ0GT1qHKu98JGG0FAO29ZLFUy9/56Z09cu7TOwuxm1KcTE5gj X-Received: by 2002:a50:b634:: with SMTP id b49mr13038835ede.77.1571731925171; Tue, 22 Oct 2019 01:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571731925; cv=none; d=google.com; s=arc-20160816; b=V68XdgPj/Npr0ibJqi0vQgotEGj4bBIqiKy4uEvL55Nkl42/p/7sKuGHDzUbGYsofS H8fjykumBRfpKiygPXYs18UDcE7L5s15NoUzcEXrmO1YpcTjcGMXqZESEPRYoRvmGeWz ZIiImwf1uS3G9uyXMzZW8Rc/THX1qb+XExsH7i52bWR85o6PKEDeKCNqRGcFGRL1zQ2K 7LVa5rgLmcGIGE75fW6FCo+loCQtS/PH6xRKJlHrfM1LvPXeup027v9lqNUuCGlaCFb1 oiflQVFG38QCFJI2HoHaxFpgsdVOeQVqjLZY9EW23PF7prsm4P9U47d2SOD7Ea/FeWfY oRHw== 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:to; bh=3Sml2F2P7+Gl6CoLYYhHjfiRf/eoD0d2+dqIG8yCZP8=; b=QCQnHjIqVo/m9Fssxx1/F8d3zuXbMKz2h/i05p6OgRknIYRcULmNkBYX/wkuivE9Kg zJQT2Gu7hA2vPwExiT/loamMQMvGWKdjC1IbPP9w5TKTJU8EvYczFnrbwFLzEVY6FWKo rgo78vG7vkSby7mdVhEgYTVUGjmjyxaF9c5tfZWPKKaoy7QBsCA7k9NCuCf3aknFp+Mb /jVSDbkjZ9KnDxWWTwP+/hsIq3UDUy6GxVd+TQj76HY7chtyW3WqVBQOZgiVHANg1e8E w98UlVVnIKbFNnQk8s+fO+atqH2LHdpWrjf+m4nKcz62Yzm+OEbuJx3PL3leMeR+5XCn gUQA== 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 jz12si10003438ejb.193.2019.10.22.01.11.35; Tue, 22 Oct 2019 01:12:05 -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 S2387692AbfJVILb (ORCPT + 99 others); Tue, 22 Oct 2019 04:11:31 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43124 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387614AbfJVILb (ORCPT ); Tue, 22 Oct 2019 04:11:31 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id CA90B8E4C52B6E750235; Tue, 22 Oct 2019 16:11:28 +0800 (CST) Received: from [127.0.0.1] (10.177.251.225) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Tue, 22 Oct 2019 16:11:23 +0800 To: Herbert Xu , , , , , , , , , "linfeilong@huawei.com" From: Yunfeng Ye Subject: [PATCH v3] crypto: arm64/aes-neonbs - add return value of skcipher_walk_done() in __xts_crypt() Message-ID: Date: Tue, 22 Oct 2019 16:11:18 +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 adding return value of skcipher_walk_done(). Fixes: 67cfa5d3b721 ("crypto: arm64/aes-neonbs - implement ciphertext stealing for XTS") Signed-off-by: Yunfeng Ye Acked-by: Ard Biesheuvel --- v2 -> v3: - add "Acked-by:" v1 -> v2: - update the subject and comment - add return value of skcipher_walk_done() 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..e3e27349a9fe 100644 --- a/arch/arm64/crypto/aes-neonbs-glue.c +++ b/arch/arm64/crypto/aes-neonbs-glue.c @@ -384,7 +384,7 @@ static int __xts_crypt(struct skcipher_request *req, bool encrypt, goto xts_tail; kernel_neon_end(); - skcipher_walk_done(&walk, nbytes); + err = skcipher_walk_done(&walk, nbytes); } if (err || likely(!tail)) -- 2.7.4.3