Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1207144ybt; Thu, 18 Jun 2020 03:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyJgJntSt3gfb3941anjNpHy27zGmjM0C3tof9MyBFNg+31/UgYmUmneD2jiMM49I0X+8a X-Received: by 2002:a17:906:7c57:: with SMTP id g23mr3008171ejp.299.1592475182437; Thu, 18 Jun 2020 03:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592475182; cv=none; d=google.com; s=arc-20160816; b=uqStBT70liABesQf41SjXHBKdFEHRW7hbMv7MbramFA4qPSGJ4U8sVqCkUoufOB9JT rhOoK3PGF9hqZA7HiRglext1VFLj3eydOkDOP8U+P3iyGRMOzQAd/fO1/SbduH8AZOLJ aBCLzs6355A1PwWIz1iQ+vsC4O+eKKSdMUXrG4I20Hosk6ZZmxhSjwnIvqb7tVc6RIbP mGw7fhyPK+Mf0YLHE9ielL4LxQlke2qwDdnV092ycV2M/m/oxhBd0kIEanGxHRHuJKma Loo6HYIBSa70JJbmcR1nCOysrcf2EkTJUG3kvA10tkRCAGd4ZuLHT52EqIQIaW4iL+Jy wPQg== 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:mime-version :message-id:date:subject:cc:to:from; bh=Df+Xk/H+WW76kaHJuTaHaZWq9Tr+Wwe5aUnKes7GS/k=; b=Jmritf6aUozotsDvGtRvdTI8u9l5WPYFPz+7ZwfRiMAVb9LBPzki/H7wPPcBc4jdmX 4vL8urI/yOWGrzOtAyWg2lZXy2HwGUlMPyy4976o7e2AebwgSqxOYtFQGyu2mWDQ4Ady TQUYU5xrdztFhdLct/Dw3oAxPK2J9v9ATnJt7/z4YMfJt4kO6qIws+VdEHnM9ntGLfLV J67U9l15twJ0tN3Oy0EZ0rH7HtfxjPpJ3qIz7LUbA0k2wXUVwax9UFrpgW3uDAJyK7J7 0/bkXwAZkW21wrRHy4T1Yp2fYlLWTqbKrWe9ri8U7XKcXrOAau9HxmLGAclW0qHItELs PTow== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si1669171edr.515.2020.06.18.03.12.37; Thu, 18 Jun 2020 03:13:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728231AbgFRKMf (ORCPT + 99 others); Thu, 18 Jun 2020 06:12:35 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47326 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbgFRKMf (ORCPT ); Thu, 18 Jun 2020 06:12:35 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jlrX3-0005iu-US; Thu, 18 Jun 2020 10:12:30 +0000 From: Colin King To: Tom Lendacky , Herbert Xu , "David S . Miller" , linux-crypto@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: ccp: remove redundant assignment to variable ret Date: Thu, 18 Jun 2020 11:12:29 +0100 Message-Id: <20200618101229.11772-1-colin.king@canonical.com> X-Mailer: git-send-email 2.27.0.rc0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Colin Ian King The variable ret is being assigned with a value that is never read and it is being updated later with a new value. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- 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 422193690fd4..d270aa792888 100644 --- a/drivers/crypto/ccp/ccp-ops.c +++ b/drivers/crypto/ccp/ccp-ops.c @@ -1308,7 +1308,6 @@ ccp_run_des3_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) return -EINVAL; } - ret = -EIO; /* Zero out all the fields of the command desc */ memset(&op, 0, sizeof(op)); -- 2.27.0.rc0