Received: by 10.223.176.5 with SMTP id f5csp702142wra; Tue, 6 Feb 2018 06:05:52 -0800 (PST) X-Google-Smtp-Source: AH8x225pokfzOqRnOSUZ84HHgEKniod7kXwU7Et+5qjrD1oNcpDTCRf8jyp3YNNCenLBZ1/7z2jJ X-Received: by 2002:a17:902:8c91:: with SMTP id t17-v6mr2629150plo.310.1517925952232; Tue, 06 Feb 2018 06:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517925952; cv=none; d=google.com; s=arc-20160816; b=iLlVEULEnxuU33iIsxXuvu9HWxW1ES0qT5vsOb3qZ0kik/SESQEn3c/nDwjarDYBD7 xAcy20CpJ10lzkQAmxEXcsNHy3zhoGkiU6B7vCaWp9kQGU9iy/RGvR34wsTwwYEqHDRE DXEqbGFJEDJHB3dl3SyJYYFuJ1pBljdRK3cHdEMvUgB9yzq5x2svfe0iYcVvLi1Tpb8z gc5x3ziHYBE3x24MzFIDzYpyKnWeSpia3/4s7hlehHHVhxhnU4uDU9rnVTXlvBybpyS4 625021WfAeCvp8dHclSsl9oTTMAhO2LD6goqDzTe6D+sxuE3TIps+rrxki/40qP+xfSV SToA== 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:arc-authentication-results; bh=PeqdfHM2R4TUAXB/wlr/rhlmCyPK+k8BjbECeC5FIy8=; b=cSEvEZey6Z0rLSeaCcwpAbpETevwd7Kax6Tpm3+CKzsy+l5E4RIlkunZTQEKfojBAM jXAT2mSMtafEJUbjIwNiagNi0dDHsk3Q4UUb+4+O+KtCWVEvSjvgz7jHvqACX4Z9VYb4 elYWJIvZo4SsZpV+I7OjFdvAcsDzuJg+Z6aGnXaRMHy6w3A8AABN2SaGsnP8ri6qXQRa n3rsFn/kcSLcnEkRMu5OV8hnHQ+pII58GZuAZ7vMToZyVqSvUnY4ZuJq0fD4SPGk6ulZ +Lub7Y0Y1+5bzuG/a0TGJiksOUUgv2bjTPo3R7Pje1bDHQ7jj1FXLuRARQ9hTIa0T6AY AouA== 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 v2si21032pge.328.2018.02.06.06.05.37; Tue, 06 Feb 2018 06:05:52 -0800 (PST) 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 S1752151AbeBFOD1 (ORCPT + 99 others); Tue, 6 Feb 2018 09:03:27 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:47483 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbeBFODX (ORCPT ); Tue, 6 Feb 2018 09:03:23 -0500 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 1ej3qB-0005Ms-A9; Tue, 06 Feb 2018 14:03:19 +0000 From: Colin King To: QLogic-Storage-Upstream@cavium.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: qedf: remove redundant initialization of 'fcport' Date: Tue, 6 Feb 2018 14:03:16 +0000 Message-Id: <20180206140316.31453-1-colin.king@canonical.com> X-Mailer: git-send-email 2.15.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 Pointer fcport is initialized with a value that is never read, it is re-assigned a new value later on, hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/scsi/qedf/qedf_io.c:920:21: warning: Value stored to 'fcport' during its initialization is never read Signed-off-by: Colin Ian King --- drivers/scsi/qedf/qedf_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index b15e69586a36..50a50c4249d0 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -917,7 +917,7 @@ qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) struct qedf_ctx *qedf = lport_priv(lport); struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); struct fc_rport_libfc_priv *rp = rport->dd_data; - struct qedf_rport *fcport = rport->dd_data; + struct qedf_rport *fcport; struct qedf_ioreq *io_req; int rc = 0; int rval; -- 2.15.1