Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp911254ybe; Thu, 5 Sep 2019 07:43:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqydxUJIjaywjWIonR1SMld+vfmYSE6+4wsoe7P2Aw85iDwbiLU7sC8s62HoaMTB608frtLT X-Received: by 2002:a63:9249:: with SMTP id s9mr3369520pgn.356.1567694604590; Thu, 05 Sep 2019 07:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567694604; cv=none; d=google.com; s=arc-20160816; b=TLn9iUnUb0K2Ck/DlELH/lvNVHgBMaSWXM+ZhPMn7m7REqvC1PqgtvRB2ODPmZMghp BtEoKA/9kRK3a3D+linQT34o5DellzpQtrbdFEotY8xx5SKlICpc41CMj9ffrf4eFpXQ 8m71tOaiI1i/WTIV2lVEe6uBXzM5lGTR5dg0+uunMmp0BFxbujCCLsPWAxZyOaTvN0+Y ubiRlhbbh+VdrBrm/3v/5GlvIxX/C/V543LRbETfk4561ix6MSI9+tqsC2/Hji9wfEbt rIlU6LmDGDyC4T6ESwufA2tLOuBCN9daLYD3xiuryoH7mF8DgjL51NaDS2IRHj/iav+d lp0w== 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=d0RbvzRFVbsTYrgItXORUYirImhVP5kRWy2PVGlX6WQ=; b=ZpuZOtA6hEGqQ5HNYMPGixkg9R5wekIqAzxJ2gk2fsigI2U6LrIhA9geCG5oypnYvg nwhlUARE5N32vzMXq/2a9bGSCMXPifK2wfoFAm9k2hoFsl9qb+X1Bba/MmG4xWJS9X+n CGn5u+VKYlpMPTQRIsE20hz0rfGOA79g+O9lHGIu6nuY72AJW+O3bxZqfv4pkvIjM0Ko E8y/HZZyXLrjjKjRMCc9u62rOJ7Yvk+YVh2KFTK5SgViMU5OaPNMi+sNH3csWmA8Vm3T o61IaGhSkIt6X7nWpw/FQO/BSDIp+vp5KjU94NFOtkGgIE0W6Z1HguwgEFLl2s8aeBx3 Ar2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id j192si1935907pge.393.2019.09.05.07.43.07; Thu, 05 Sep 2019 07:43:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2389378AbfIEOev (ORCPT + 99 others); Thu, 5 Sep 2019 10:34:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:36811 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728258AbfIEOev (ORCPT ); Thu, 5 Sep 2019 10:34:51 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1i5sqK-0003h2-3I; Thu, 05 Sep 2019 14:34:36 +0000 From: Colin King To: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nvme: tcp: remove redundant assignment to variable ret Date: Thu, 5 Sep 2019 15:34:35 +0100 Message-Id: <20190905143435.2864-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The variable ret is being initialized with a value that is never read and is being re-assigned immediately afterwards. The assignment is redundant and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/nvme/host/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index 2d8ba31cb691..d91be6ddfe25 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -1824,7 +1824,7 @@ static void nvme_tcp_reconnect_or_remove(struct nvme_ctrl *ctrl) static int nvme_tcp_setup_ctrl(struct nvme_ctrl *ctrl, bool new) { struct nvmf_ctrl_options *opts = ctrl->opts; - int ret = -EINVAL; + int ret; ret = nvme_tcp_configure_admin_queue(ctrl, new); if (ret) -- 2.20.1