Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2828078imu; Sun, 23 Dec 2018 08:41:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/UEHS/8tZInoApMeiZ9/O5wGEAwaMCsb0FaaBiDlQICbI12Sv/23l1fXCZW8vYZyjqsihoG X-Received: by 2002:a62:d448:: with SMTP id u8mr10222838pfl.105.1545583302460; Sun, 23 Dec 2018 08:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583302; cv=none; d=google.com; s=arc-20160816; b=hxl+wpAeUfVN79n+VmZle4EPPW2Y1KF3FgJRm+23B01ppco3ijNHSj07lyq5iX0XR8 nS/9kRzSG+DC0tvKmwWAqZNfJHIHByESJQmgTwd2WTaEHLei3XhgKhImhfqDAUmTan+X 0dzruLlgwqwTsS4QOrlvQ6vcMeqxwNtEqNkmfpsSXlPWgG10vR/pHziOddIkOSBRni1l X7rE5TjIHHCHPZmXrnIzABP4Qx6KxRY3M/wtNT+31OhvSrbXlC6YncCnFJ+gYPKehMfF FNtCWa0pkj1wQvedeYyAb5KxlyM3+QE6x6/ktPHSoHb4GkRgV56uxO2p9DJtu/mWVS/+ i2ag== 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=uPBqMYmi+IzF7cwvN2Xa3vaBCCWHrNkC5o8aSqzF93w=; b=HyS9HRSg8m0JhU1s3VSPujKm7C/VKYoeiHtNa5EPI0Yvs8ZVRgsjNzX3b3aArBpJ6k TCSL3pbLJpJjEGyiPhB4RTxWe5VbgCl2uatNCrHqMPHsHoCNjKdwbSzvxBsUX2cjkz25 cHfxRyieJAiAVNqcCJujbCQwLTR6bJknIA6AOTYsQFXVXzMp4U/2ars82Z9pT73LbiuC IRBOsxAnmxoLAApr4vCFuSkMN9hq4+vzUY13WlraYvqil5I7elCZ4CUKZkN3R/eHQIkf Pb2LODXYytQSj/X25TpYfB18yR3ChKVflzHs31fdQZ+w1JTZqIHme/QR1kJqfWGRBiQ6 SP/A== 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 32si8277795plg.29.2018.12.23.08.41.27; Sun, 23 Dec 2018 08:41:42 -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 S1727709AbeLWJfw (ORCPT + 99 others); Sun, 23 Dec 2018 04:35:52 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44319 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbeLWJd7 (ORCPT ); Sun, 23 Dec 2018 04:33:59 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991767" 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:53 +0100 From: Julia Lawall To: James Smart Cc: kernel-janitors@vger.kernel.org, Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/20] scsi: lpfc: lpfc_sli: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:00 +0100 Message-Id: <1545555435-24576-6-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 has never been used. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: 895427bd012ce ("scsi: lpfc: NVME Initiator: Base modifications") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. drivers/scsi/lpfc/lpfc_sli.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 30734caf77e1..13fe9d3331b9 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -3948,7 +3948,6 @@ lpfc_sli_abort_iocb_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) void lpfc_sli_abort_wqe_ring(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) { - LIST_HEAD(completions); struct lpfc_iocbq *iocb, *next_iocb; if (pring->ringno == LPFC_ELS_RING)