Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2901036pxa; Tue, 25 Aug 2020 06:31:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDq7M/6lCQt0t77wYRcpqi6/m4bea7Ii8dfV/HDDG/4z3LVBBCvsa/PtiXyOnByKigIJ8I X-Received: by 2002:a17:906:5f8d:: with SMTP id a13mr10307674eju.226.1598362315277; Tue, 25 Aug 2020 06:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598362315; cv=none; d=google.com; s=arc-20160816; b=VA8eUBsbubY/tgzkeZ4UqAgI4ZOy0k/zrZxFum0sSB4v/0HmmIPo6ltxXFmHbYs977 iy1eH1/O1RdNKURRFsQKPK14lf8xeyYEAQK80+32gjvlxg6k+6C/DzyNVo44z6FzD90p 42uFPuaMsCOntVrHDmYQ8MCt5O18kqGG7aJtib5s4SYryDyCHSqQ2jKJZdWI17XlAn6L uP9Et3v4PMD8ZajPG8ZUnqQjiXXtk6Xya2+bTGJWwZSHXB2Lxijf9GFji0YT1/5NxpOD oVF0ocNqWsYyxQ21bD0orA613IuK7sBIFavWJCJt8lClU8x38Hu9YC+alvsvLmF8UdxI +Qmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=2SfrK0eHenlCVkqBRpYix7m8N1N8a2l1yYmb7XeCvjA=; b=ZpEOOJH8sMu8PlIStOqgWa4VHvowp1IFd8Crm7F18oSFI5fTfLDfIsjkSxG+aIsd4q tu7/jVWC3PqNSp4/I/BT7TAO53J0dPD3J969QNJ4e68U5Xq1RLtk2jSzz1rlz6VWim3o PkIoqF5nVt6XK3mKjPZUk1s1GEN5szxMgpFm0/2OUOw6PHBnq+4THV4+PXDO9gbyrFI1 xmZsx9QQazxmidR5csZKGa3qDdZDOC5MqL6uL+Wbp5z7gRSqDYBsgXZD2JWZ/M8uihN9 Kcu7blTzOox2fhtuOwV3IKn2FmNKzyb4WVPFwOP6jXK3TIZgHmcffIfZfRVEv2pkCfPW ztYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cgrIB4OR; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si822125eja.354.2020.08.25.06.31.27; Tue, 25 Aug 2020 06:31:55 -0700 (PDT) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cgrIB4OR; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726096AbgHYNbZ (ORCPT + 99 others); Tue, 25 Aug 2020 09:31:25 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47212 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbgHYNbZ (ORCPT ); Tue, 25 Aug 2020 09:31:25 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 07PDVKQY048023; Tue, 25 Aug 2020 08:31:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1598362280; bh=2SfrK0eHenlCVkqBRpYix7m8N1N8a2l1yYmb7XeCvjA=; h=From:To:Subject:Date:In-Reply-To:References; b=cgrIB4ORCiPSD0airAeC9X8uzhplIGEOH67o1NaQNTrGqvdpHFkD+ILuM4azv2/i5 4DUSGaePAY0Nu0kFA4x3YkpIxIrVOMkrBVDVM069l2trjvIqfx2eBRWw4SEPbhGh5J Zy9GLbuUu5BJGJO9GjKKt/zw2DM/nKLcUaXAu6mA= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 07PDVKLk016393 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Aug 2020 08:31:20 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 25 Aug 2020 08:31:20 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 25 Aug 2020 08:31:20 -0500 Received: from sokoban.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07PDVFs0046832; Tue, 25 Aug 2020 08:31:19 -0500 From: Tero Kristo To: , , Subject: [PATCH 2/2] crypto: sa2ul: fix compiler warning produced by clang Date: Tue, 25 Aug 2020 16:31:06 +0300 Message-ID: <20200825133106.21542-3-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200825133106.21542-1-t-kristo@ti.com> References: <20200825133106.21542-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Clang detects a warning for an assignment that doesn't really do anything. Fix this by removing the offending piece of code. Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver") Reported-by: Nathan Chancellor Signed-off-by: Tero Kristo --- drivers/crypto/sa2ul.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c index 5bc099052bd2..ff8bbdb4d235 100644 --- a/drivers/crypto/sa2ul.c +++ b/drivers/crypto/sa2ul.c @@ -1148,12 +1148,10 @@ static int sa_run(struct sa_req *req) ret = sg_split(req->dst, mapped_dst_nents, 0, 1, &split_size, &dst, &dst_nents, gfp_flags); - if (ret) { - dst_nents = dst_nents; + if (ret) dst = req->dst; - } else { + else rxd->split_dst_sg = dst; - } } } -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki