Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5995038ybe; Tue, 10 Sep 2019 11:54:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmh7xOrJTr46gNqhbDy/bOu34qIyM2UklTyL5YXDPofDkmms+XnYLDbR9JVKjiVEoiKTgQ X-Received: by 2002:a17:906:129b:: with SMTP id k27mr24228266ejb.42.1568141644417; Tue, 10 Sep 2019 11:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141644; cv=none; d=google.com; s=arc-20160816; b=Q3Nl3JjW8Rb4gZ+dB8K92kY1pHZgcojLclJDxQSR73Ub8cIpaMElFr3ifcRHw9k8We rn0z9f1z+LBMob9404uRf/ifVFIy954RWyPNmzNH/zZi5lUmhfF9ySbK8/KEXm+KNeYy e3sfcAOPBY4bjKRl8rcEfaQUD+e+tb/jWiqKz+Nm05zZXNOPvogJ7JiKX9MPWEzc1Au6 fE8sF1+HMnNTh3vRIdr1VQ5GJz8QsXzRO8y8J+NQ+mXYrv87tnSuhtAgn+A6rL4hue0T zFmaOad3kUwcQOgoV3fmbFMzVL7BoqgGKkJD0iVU+eunOApD+e1rPxh74YvMCFrV+/T0 TC/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=EmMCzFF4OgzdrG5V2m4nuTKEFhoGRqNgsK8ittAqLfg=; b=yQ3vpMOO2zNQ0fcORsccra4SdV+Lm6G+i8ULEDh7ilYOLrsbwImg4XpGfh/2b8X8ty QEsvm9KR439ocR9Vl+J1q/GF4cs59aO72bxwbp5c5jvseDkhpRwKu/rmDNdcVp1wQRaG uZp7HtiArNqVXwBdGRkjknYc61nC5a2dQ0bt51WWxY9nzAruFaGSFXqWNkhd1lAo1F4A CAp2gaF60E37qoMZVgxYh/NREV7us9FEsAz3zcQlc94RDj2hp13yK3w2MGlQ6z+qTQ7g GeTAOVGtRyRkWycfVU3hf9pfMnBREKtIEnAuImVAKTtnzTenerka/oi86u7mSN+dgNnx 3YCg== 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 w42si12389126edb.43.2019.09.10.11.53.40; Tue, 10 Sep 2019 11:54:04 -0700 (PDT) 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 S2405424AbfIJKCH (ORCPT + 99 others); Tue, 10 Sep 2019 06:02:07 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:49084 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388547AbfIJKCH (ORCPT ); Tue, 10 Sep 2019 06:02:07 -0400 X-IronPort-AV: E=Sophos;i="5.64,489,1559512800"; d="scan'208";a="318878844" Received: from portablejulia.rsr.lip6.fr ([132.227.76.63]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 12:02:03 +0200 Date: Tue, 10 Sep 2019 12:02:04 +0200 (CEST) From: Julia Lawall X-X-Sender: julia@hadrien To: jassisinghbrar@gmail.com cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, robh+dt@kernel.org, masami.hiramatsu@linaro.org, orito.takao@socionext.com, Jassi Brar , kbuild-all@01.org Subject: [PATCH] dmaengine: milbeaut-hdmac: fix returnvar.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: 7cff81f3886d ("dmaengine: milbeaut-hdmac: Add HDMAC driver for Milbeaut platforms") CC: Jassi Brar Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/jassisinghbrar-gmail-com/Add-support-for-AHB-DMA-controller-on-Milbeaut-series/20190910-142047 :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago Please take the patch only if it's a positive warning. Thanks! milbeaut-hdmac.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/drivers/dma/milbeaut-hdmac.c +++ b/drivers/dma/milbeaut-hdmac.c @@ -171,7 +171,6 @@ static irqreturn_t milbeaut_hdmac_interr { struct milbeaut_hdmac_chan *mc = dev_id; struct milbeaut_hdmac_desc *md; - irqreturn_t ret = IRQ_HANDLED; u32 val; spin_lock(&mc->vc.lock); @@ -201,7 +200,7 @@ static irqreturn_t milbeaut_hdmac_interr out: spin_unlock(&mc->vc.lock); - return ret; + return IRQ_HANDLED; } static void milbeaut_hdmac_free_chan_resources(struct dma_chan *chan) @@ -289,7 +288,6 @@ static int milbeaut_hdmac_terminate_all( struct virt_dma_chan *vc = to_virt_chan(chan); struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); unsigned long flags; - int ret = 0; u32 val; LIST_HEAD(head); @@ -311,7 +309,7 @@ static int milbeaut_hdmac_terminate_all( vchan_dma_desc_free_list(vc, &head); - return ret; + return 0; } static void milbeaut_hdmac_synchronize(struct dma_chan *chan)