Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4251240pxf; Tue, 30 Mar 2021 03:12:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz54w/Joewd0O8MVGVXFwAVXBk9c8TSpXRgqyyh/5UAKF8Hw4PdNM/BiLKrYFZk2OxDBA8x X-Received: by 2002:aa7:d74d:: with SMTP id a13mr34164590eds.199.1617099132875; Tue, 30 Mar 2021 03:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617099132; cv=none; d=google.com; s=arc-20160816; b=ioaNAaUu5jCOPZHv63GlbOJyaHef0IKPFjRj9bH2+lSIs3QAFd+5zqk+v2SUNVp0+b 8fOMa+enTLW4bkNKOAkPCOwskfpFtU4nwV0WE0/sasVtx1RcBfqVldqpmfpeWzn7/0Vz oEmPDJSZbz4f4jpHS2sgWmnqOdkkMzpFx2WwrxI2NnLTNLhYqSSLTf2XJPPsRm9Aq+2w 4gHuwUAB7n5evs8VVrnA4mKluaMNwwLKlYfhrm5b9739obQugYS+aSWi4i5e2mBslXz4 RoddUchX5SpVDUmujPLFaM4CRkA2m1VvXq+UAhA9OvTz+q0Nn5Nd8hStZnD9FCnvKQvx i0cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=GetT9BtQpEmUfU52Bk6R1R5v6orl7moUB/FCW81voJg=; b=irt+818mDOmXUdK0BAzVghjmcAeSI5MLxt5uL9fIsgwnvJggAFWnVK2FvHBUqrhMyi p51Fykh4yOuztH/NJ86Q8uN3af1I9qSgoQ5XX3mFdegpLk730JPfV5YeZo0/D/oQwcce P0cbX/XGsYm+pfP3v/sBPVyBESr4PH0swF87xKZDvGeYc+dQgMNcKtyAdZaEgnQPt4Ke sscFBM4iSYOhTYAcXdS1r0isFKHHLQhwuasmcAuSQlr8oXg2mrRwtXeIAtO7uysPVO76 BlNeeyWEUkCd3jEFnzerTVc27GpDgQuQDysx3j4xPItV18fDJ1XM6F/u4MUTsG3Rdj57 6ehQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si14830015ejw.185.2021.03.30.03.11.48; Tue, 30 Mar 2021 03:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbhC3KKv (ORCPT + 99 others); Tue, 30 Mar 2021 06:10:51 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:44718 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbhC3KKp (ORCPT ); Tue, 30 Mar 2021 06:10:45 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R541e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UTrGkMO_1617099031; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UTrGkMO_1617099031) by smtp.aliyun-inc.com(127.0.0.1); Tue, 30 Mar 2021 18:10:43 +0800 From: Jiapeng Chong To: thomas.lendacky@amd.com Cc: john.allen@amd.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] crypto: ccp -A value assigned to a variable is never used. Date: Tue, 30 Mar 2021 18:10:29 +0800 Message-Id: <1617099029-50434-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following whitescan warning: Assigning value "64" to "dst.address" here, but that stored value is overwritten before it can be used. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/crypto/ccp/ccp-ops.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c index d6a8f4e..bb88198 100644 --- a/drivers/crypto/ccp/ccp-ops.c +++ b/drivers/crypto/ccp/ccp-ops.c @@ -2418,7 +2418,6 @@ static int ccp_run_ecc_pm_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) dst.address += CCP_ECC_OUTPUT_SIZE; ccp_reverse_get_dm_area(&dst, 0, ecc->u.pm.result.y, 0, CCP_ECC_MODULUS_BYTES); - dst.address += CCP_ECC_OUTPUT_SIZE; /* Restore the workarea address */ dst.address = save; -- 1.8.3.1