Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2827811imu; Sun, 23 Dec 2018 08:41:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6m7PhmcjeqmwB9kKbnMwdpNmFiVfVZsvU1iwg56mcML37gW9ST8V1JHIa0UlrNBJQdDmqO X-Received: by 2002:a63:5455:: with SMTP id e21mr9711774pgm.316.1545583277594; Sun, 23 Dec 2018 08:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583277; cv=none; d=google.com; s=arc-20160816; b=i5RG0yq3xBLEqNR0SxTjV5IJw4IYRz+wBkWGs3OhCwlQ4QUQrCws9tHcvQA8T5s4DX IEF82gVbkKa8N7O6x154GdstuRLUt8glvigo8QPEzPFVBKd5pOreXVmSSANP2aZRu9D9 Wbp1Dl8RDZn9iyDM+TzxuZf6lYHMKnvM2LgY1gvKW87B0lKMSfHYus16zzMAY0MyQE+6 D+xRyYWij5z002FeR1zKrFDPF046cFMRbS3ZiUeVThbSMSv0SaazmrgLTDaPssUmOO8b e3lo0ekGKLJq7DGBeJq5TviDncAgFRm60nWPPNSfMulntnX7GP+Y2cjxyX25uYvEfuqy SLzw== 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=gR1iKMNoLdSw8QW0jSwGDUgro3F6B9AX6g7vOr5Lz/E=; b=ugxuVVhW8qlv8jNc4MGe/z+mkbTuypeWEJuohR6qw7dUImIP7wgoE+00cvaIn+Ssql cPaKaPkr18EYVjBLTmoeZ+m3EGK5iXgVwzILU/aFuVBc6ZK/5WuV8SduYPJEV27Ulc0L IKfKQmqI8Rn/CvEljBF9dfzPoxvN40PAxYxn4IaiqyRq2MPxsez42Zeew4CdrJhbBRPO eGfNfgaNhjnHs+G+hua+R367MAJfaZWqe3WPpOSp9H5lsWxwW3DIdDKRUijzpdfyJIFR V8jTBe4dMxvp8LxvbslfC1ErowFavpUANClaokUgu7Tu8jyP7HifXSQ+7Aowd03udRTI Kr+w== 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 g187si25944390pfc.43.2018.12.23.08.41.02; Sun, 23 Dec 2018 08:41:17 -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 S1727509AbeLWJeh (ORCPT + 99 others); Sun, 23 Dec 2018 04:34:37 -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 S1727364AbeLWJeG (ORCPT ); Sun, 23 Dec 2018 04:34:06 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991782" 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:55 +0100 From: Julia Lawall To: Dan Williams Cc: kernel-janitors@vger.kernel.org, Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/20] dmaengine: pl330: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:12 +0100 Message-Id: <1545555435-24576-18-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 variable has not been used since the function was introduced in 740aa95703c5 ("dmaengine: pl330: Split device_control"). The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: 740aa95703c5 ("dmaengine: pl330: Split device_control") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. drivers/dma/pl330.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index cff1b143fff5..eec79fdf27a5 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2267,7 +2267,6 @@ static int pl330_terminate_all(struct dma_chan *chan) struct dma_pl330_desc *desc; unsigned long flags; struct pl330_dmac *pl330 = pch->dmac; - LIST_HEAD(list); bool power_down = false; pm_runtime_get_sync(pl330->ddma.dev);