Received: by 10.223.176.5 with SMTP id f5csp722230wra; Tue, 6 Feb 2018 06:23:18 -0800 (PST) X-Google-Smtp-Source: AH8x224ERpMW2NObHQSaXk5gSTQ7W2ykRAxg8aaWq9g/yJxI6k8GsMLOUSe3ALoZPQIhn9aCHLjj X-Received: by 2002:a17:902:183:: with SMTP id b3-v6mr2594827plb.383.1517926998473; Tue, 06 Feb 2018 06:23:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517926998; cv=none; d=google.com; s=arc-20160816; b=CW12BnAz9LNEMCcvD1CissRi0kM3F/Efd4a20AJOWvKJOtSTKfM0FsVMByGl13SLTX +oADHW7M8dT0XwI7joO6tLIsudlyNDYxWyZNra2/XYgk/wtOM5LFE09GJXx5rHoxqqfk tC3+XxuSuesxyqj/HuyWx7JOHLtxu4kEPTU4PwTSkHya8BtoJlUpD8DnvNYdSf6FTc0t 1r4QIGtWl3U8sFIe8YcvuZoJYkWaGC/ddOnD+6bMa2YmqQDKnWoZChFjAq8u7nIk0R/x p5Z65rrjbs2z9jYr1ViOUe2KTVmCspIBLBDc9j5VL5rcUDZDVFXu8fK03dTwNFV4v7xB uo8w== 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=a1p2KleByU61yGWXJgjmWi7Zv9mQHYNqGhJUF7dOW9g=; b=M9ilwV8Y5rQZ22KxSqFJEiMOoxLmm8lAjfI5jTHpt6aGiVyRXENaEbL2XLLRwFG3Wv HgDx0Ae0LhsV/phVV+MVepmvED/GvApOqb1diXYNicK1WsBSLDDTDCZIolQ1TcY4T9OI B13JLBNQsKmw1d1jc/X4ZJWra1hJLKq1aV/8khHOCv4ltmpZkwnjzQQukV+TcgEMtQ/p MZ6gqNOE3T7uOw97zxwTYIVcw3fMtWeHCHrLZtTUPQ6Bp1/bqdvQrl9f9i2YD8fmpLKM ReEZES3e4WCfincwkRF4nT2uP2V5DxTzbOwhiJj73u34n4juiWWSlWb9hNWusTZgO9Gy hlKg== 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 q73si1084829pfl.147.2018.02.06.06.23.03; Tue, 06 Feb 2018 06:23:18 -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 S1752029AbeBFOWI (ORCPT + 99 others); Tue, 6 Feb 2018 09:22:08 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:47902 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbeBFOWB (ORCPT ); Tue, 6 Feb 2018 09:22:01 -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 1ej48D-00054F-Ku; Tue, 06 Feb 2018 14:21:57 +0000 From: Colin King To: Johannes Thumshirn , "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: libfc: remove redundant initialization of 'disc' Date: Tue, 6 Feb 2018 14:21:57 +0000 Message-Id: <20180206142157.32001-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 disc is being intializated a value that is never read and then re-assigned the same value later on, hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/scsi/libfc/fc_disc.c:734:18: warning: Value stored to 'disc' during its initialization is never read Signed-off-by: Colin Ian King --- drivers/scsi/libfc/fc_disc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 8660f923ace0..3f3569ec5ce3 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c @@ -731,7 +731,7 @@ static void fc_disc_stop_final(struct fc_lport *lport) */ void fc_disc_config(struct fc_lport *lport, void *priv) { - struct fc_disc *disc = &lport->disc; + struct fc_disc *disc; if (!lport->tt.disc_start) lport->tt.disc_start = fc_disc_start; -- 2.15.1