Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2828267imu; Sun, 23 Dec 2018 08:41:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uc0Qj/30xWRR+cNA7sdlW01n9xEdt7gBAs/KOG/Bf49UHgeFsxoM5aO4+mdnQO2iFEmbn X-Received: by 2002:a63:c10f:: with SMTP id w15mr9552106pgf.199.1545583318677; Sun, 23 Dec 2018 08:41:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583318; cv=none; d=google.com; s=arc-20160816; b=L+rOMSx25QKjlvA/VQD+4lK1Z1t0R2lY8YHtvE4eN85B1mXXulhmwck60RrgHCbgf/ jMSF2soSYnCINHfThty1gg1T5lpq1/8CqT7PgpZKWFxH4VD0m/pkgKjaXK/edV3TegeM IR78gTZcUiks8VweDtl/BcOb0IK2Zt14VYK74gV9p3x+Gmj6u49RE7kVkEkHKWnGCrxY VrtZrTdy9SR1sxlSidfTwRn+AbOmpQdtvwcIt8NsLD59IsYSaYoAwS20NJELfJtKafu/ 81nG+x04tN6MQIYdyBh6JcAX7LjKGPOBCfqgB/abTIFdFG0H4KzMh/xmZ/xA+c7lqKCB 1L8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=AzeTtu3MePvtdWwaG439TseCbeiJGdBvwXgJf0Tt9Nw=; b=RvnfNTjvGuFXN6MYyvsRoIfeu64kLaFmDww/HNjjfO5OYFeklfEeXSLU0HqghL7NTJ J8sg2QhhGpSZMiiJ6rcCxqwNbwkOvgDJRmsR5vQgOpNoywUttDAzHUBahS2VZy6hy4s4 OK0cxQHS3TvXNv0ETzQM/sM6HqAa93G46Ojy2SNbfIR+u/8IQY6tkeiAoa/XeyfyV7Pv 8djmHn+pN+EV/MNkZcvz0bdjdKE8hwYHQqd2TAy5Q6HjRVOmWrk9vzm9CXRuzmUxuAB0 srACRmkDEt+vAJHxb+A5w0NXMdVmVOcxis8q+2B0GbXksLGmyVfOky1bIoOUCo3n9WN1 cOcQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si26501729pgm.238.2018.12.23.08.41.43; Sun, 23 Dec 2018 08:41:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727376AbeLWJeF (ORCPT + 99 others); Sun, 23 Dec 2018 04:34:05 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44293 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbeLWJeC (ORCPT ); Sun, 23 Dec 2018 04:34:02 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991774" Received: from palace.lip6.fr ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 23 Dec 2018 10:33:54 +0100 From: Julia Lawall To: qla2xxx-upstream@qlogic.com Cc: kernel-janitors@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/20] scsi: qla2xxx: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:05 +0100 Message-Id: <1545555435-24576-11-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop LIST_HEAD where the variable it declares is never used. The uses of new_fcports were removed in 726b85487067 ("qla2xxx: Add framework for async fabric discovery"), but not the declaration. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. drivers/scsi/qla2xxx/qla_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 364bb52ed2a6..d72e3ad97a54 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -5400,7 +5400,6 @@ qla2x00_configure_fabric(scsi_qla_host_t *vha) fc_port_t *fcport; uint16_t mb[MAILBOX_REGISTER_COUNT]; uint16_t loop_id; - LIST_HEAD(new_fcports); struct qla_hw_data *ha = vha->hw; int discovery_gen;