Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp568838pxt; Fri, 6 Aug 2021 08:34:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDgLbRyylWWAb6PrwBMFPnETG+J1j4w6h4MdKq/LQ3CvYfI7qE9P0LXsABPdXp6zXFdu+j X-Received: by 2002:a17:906:549:: with SMTP id k9mr8312875eja.299.1628264074553; Fri, 06 Aug 2021 08:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628264074; cv=none; d=google.com; s=arc-20160816; b=dRX3CtzvlKl5Pb2ImLkJyvlH3+WN5A94003CYxQ+ucgOLfQWtqLo/OfH/TV/5HZQ+j jQMt/GqTBPVFsKEDvOTRdTSsz/iu1tTf1ztw/oXQM4g0knqNyk/kCqZn+aUiN2T97rh/ d89bARH9nFqdfgazUmbwZUPYZedQa800TK23l7Zw8Vvz4R86mtN6e+KUjExJWsvjvIfN xC135R9CqwaF1gVaZgtA7TXViUTQrudsTtBpc95KNLl3SxDmzAEc9HYJ0vx0sH5StNOQ d5ywq5e4UW7XjFamJhH6+CboyqSlv+c2p6ptLFzi6CtQt8u7O/Y4vRzoEqyOWv7OwkVx JiOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=H1p/HXx7/C4MAn4Q4UfTW04vI5AaqbugvXyofQ0obOw=; b=ouqG0qdepPCYKMnm4PKkcgAmx3uUxWgjVESLz39OYMuqvtq/8zKwKNCGsE/fqphF86 bILZBT7bGSvi/68BY8Hzw2SZYInNoTy/73FCJmzcik7lfxa2llO/UCzZsrtjTqTWRMAk aM/0jcUt1/E3S0DYc5Jqe0qb7/CDm0H+St3sY07AjRmhJ/knNSDgrirMStQYTjR/kQ0E t162HL3YBCU1P7eDOZwkhD4jtXvBACjlMa+0S/Mldm218Ghc98/dgt+rwgyRY6zdto0U 3FhLQ05cQFNkB+RdxhXvZbIULRFA4SVyi0y/H1/mYaAEwdsMcxluVRX5kgHzKRu7WUPR 5ADg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TpI9lSCm; 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=pass (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 ce17si9202533ejc.222.2021.08.06.08.34.11; Fri, 06 Aug 2021 08:34:34 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TpI9lSCm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245451AbhHFLXa (ORCPT + 99 others); Fri, 6 Aug 2021 07:23:30 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:49210 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbhHFLXa (ORCPT ); Fri, 6 Aug 2021 07:23:30 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 7CB9C3F049; Fri, 6 Aug 2021 11:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628248993; bh=H1p/HXx7/C4MAn4Q4UfTW04vI5AaqbugvXyofQ0obOw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=TpI9lSCmRlzMVuV3y9ww8ZdpkNWG4J8Gk5L//ujzTGfFHwA99qmPBv7ndCCzlLsSp P9vyYOC2j+zHjDjv6fakqwsYGzLCb6MnHvmBaswtRVQSbf+SBuLVZ87CKGHeuHmF8C 4CsjJOr+l8RKrTxbmn6F8f6+LevmfWVZhFc4wKynJU/AYOmJmJrAL34KYFNFWpjYnJ OLMMCWNlHhpR2GeUTZUeGFjqGsOaw1IhQQox9pnSaLvPk35RzZcV2BVUN8eafQcRTH SDSiWFV2XgA9tD/D7nkF6tqwuyjyIBZiIG8mYF5b6KdEI0Q4IC8hytIJfu0ci600XW SNJSlI4VXl/KQ== From: Colin King To: Karan Tilak Kumar , Sesidhar Baddela , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: snic: Remove redundant assignment to variable ret Date: Fri, 6 Aug 2021 12:23:13 +0100 Message-Id: <20210806112313.12434-1-colin.king@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/scsi/snic/snic_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/snic/snic_scsi.c b/drivers/scsi/snic/snic_scsi.c index 6dd0ff188bb4..92f5b65c2a27 100644 --- a/drivers/scsi/snic/snic_scsi.c +++ b/drivers/scsi/snic/snic_scsi.c @@ -2383,7 +2383,7 @@ snic_host_reset(struct scsi_cmnd *sc) { struct Scsi_Host *shost = sc->device->host; u32 start_time = jiffies; - int ret = FAILED; + int ret; SNIC_SCSI_DBG(shost, "host reset:sc %p sc_cmd 0x%x req %p tag %d flags 0x%llx\n", -- 2.31.1