Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1381383pxb; Fri, 10 Sep 2021 04:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyduO7Qo8FRyKFg+4gNMURaqhWnboS6qJV5rsMMwCXqmlwNBMxq2VTLkjQ+XuuMi1VT9z9H X-Received: by 2002:a17:906:25db:: with SMTP id n27mr9116158ejb.108.1631274602355; Fri, 10 Sep 2021 04:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631274602; cv=none; d=google.com; s=arc-20160816; b=sED+gC9tVskSqUdEgwT3OmrU+tLGwJlAEP0QJXd5tFT1OoOGn2FnVT1KvryDoP6uyh XdPXL6oxsMj0nC5TwsLrkjzaDjGeBEb/55W49X/3URJmuUsqY6PpJCB+3bN3LdntWbTv 70u9rZte+Sa7nbHzVQJPoeYVKj+wHYv2WgX2IHqAVk4JALbQ/RkiNDjLpp2dzsHjUYAW 0ehlGrtdiGKbHLvpWPAjvE8zOwohCDnm4F5ljhFo27wf3xJAHXD0VCkUMKVHJV6IND0b btbxdm2aynqPINhOpcQv+3sxiwyHkny8fWAq693PTRZLq9RR7zhVaFoKhyOYfeA1CqO3 4iVA== 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=+9/bpq7jclrEor7OSrcOzfI9neZF2mtMH+2UvxXLpiM=; b=B3AmKbTFsbcEfEpH5e/lBAh36nkTV0BdirTQK0MFCUHGNb88oXz9GmCF+goWkV3Yvz Yu61R6/f128mxGsBAOXxjaXSx2b416y4VGpPgmCqHB+aGe6Z2L3VNb9kIpbkZxU7kdW2 b7NAf1PiVSqr0mu4+OKKaRFH+Dq6/mcpkmyhsp2QZWnWtUvTFBo/94NNkRpxKjLPP1ho QzNRQ4HIac0WD3OtCIKcy/hWJOf7zooJYmYJ0k2v87tnrrSbNim3XheWwq5WMlxbQNDP v1PL/h5Zy011JdNsm1Inb4Nxo9hemM11gLLkgJt7o8B0EYBI/9Sh9yRKkHZkGos7nP3F 0HSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GORjGQea; 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 aq9si5003902ejc.356.2021.09.10.04.49.37; Fri, 10 Sep 2021 04:50:02 -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=GORjGQea; 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 S232887AbhIJLrY (ORCPT + 99 others); Fri, 10 Sep 2021 07:47:24 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:60796 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232613AbhIJLrY (ORCPT ); Fri, 10 Sep 2021 07:47:24 -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 F290A3F10B; Fri, 10 Sep 2021 11:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631274372; bh=+9/bpq7jclrEor7OSrcOzfI9neZF2mtMH+2UvxXLpiM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=GORjGQeaVrw9ROI9XY+JBKdNJ1IlkqgXQvbFRgEBpS2Smd5bNFm3G1+k72DPh5a48 cOJXbg/UWK1H9CjI+brYbC1UyF6OV3Xhs3YpiZ4wiLtECRmEaLTmeycv4ZxMup3cHq VNSVkoE/K8JLSk0n3VR7oo+BLkMqIE2emRYUTK2+yOD5sR3vRVNqvMpJPWpliEG/ev ZKo3Qo5CV5Yn95/bqRTPFonqBJSg9tQ8o1jVEpggGqUJD/oCw11F/TY5xmsv7gaQSS Pd3N+HLNSjgoLpHNu/8t+DQmFfGWphoGRB5VOiqW73l65N0s76L43PNILpDAelKuMY 62xQRN59kzPng== From: Colin King To: Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "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: qla2xxx: Remove redundant initialization of pointer req Date: Fri, 10 Sep 2021 12:46:10 +0100 Message-Id: <20210910114610.44752-1-colin.king@canonical.com> X-Mailer: git-send-email 2.32.0 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 pointer req is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/scsi/qla2xxx/qla_mbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 7811c4952035..b5e21fad9551 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -3236,7 +3236,7 @@ qla24xx_abort_command(srb_t *sp) fc_port_t *fcport = sp->fcport; struct scsi_qla_host *vha = fcport->vha; struct qla_hw_data *ha = vha->hw; - struct req_que *req = vha->req; + struct req_que *req; struct qla_qpair *qpair = sp->qpair; ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c, -- 2.32.0