Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp532181ybe; Thu, 5 Sep 2019 01:41:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb5CzVngTuvUTO2REEHH6oRd9+gK8IfVUYucwTh7SJ5usCS6ITbJrL+zWtP5hnlgfzfMuj X-Received: by 2002:a17:90b:8c1:: with SMTP id ds1mr2657250pjb.114.1567672916672; Thu, 05 Sep 2019 01:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567672916; cv=none; d=google.com; s=arc-20160816; b=bRqmMP3q0ccaZilJwYyPkiBb3mZQsNM2Pmbx08GntfsyxBHRhsYdcanALKFKBYo5tt aVMEiY7vpkqws0JkDxuK2HJnq5dJ5xLqLJ0c4iWxL4Fw0B4xf9x8cC2AAhTMUJSiZvs8 Vs+23NeJeJ86gR033+sDzWkM/iO4jqcpXlMg+NYE9wUsmtpFA3WzgR/1uMLuFlz+2csA wjqgw2wNJbecLotEQkd0YmxZu7iUVPBix3ZkiSEYnz6pY2n6Kh/o5G2qY30bBMs+aKzR o4bbe7sBUrrrbUOWN/SDOAGOeN+xZlAPXg08J+uWPh1+m3WeaEZAOT2CDUta+Z4HZluO Dv6A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=rsuS3KW8iGDkRX2+94qPa4U+P9JzBJ56k0nHSuoZiok=; b=mcdq/ZpSuBe7UUB6RBrdrJf8qNMsfP4R2G9UONnQholJgs0zrHtY5Ac6cGkkt0gdnS jIu1nmTxfC4IVR/7EFDOLQo7q6bN966khbrFZ/jrS6DfjbRPCpq8XmP1dfmeFznfsLSK Au52vIhOT3Rd0t9TtIQDZrVfGzNa0BYuY1F/itF5oLRQosM9gBBVbLbT49UDeeV0d+uB zDAS+M5HUUGF5LolAbVjMgSe2RG0crthrLbGFjujghsYwguG1vBphmTPyvmpBd3tR37X 9u/JxfXU0/cGk1panC94DS/okN3Q+ExW/3EuaasUQXc5vFzqnmhRHL2lirdSbPvZqlhE 12Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aVYVkfqv; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t189si1192892pgt.428.2019.09.05.01.41.41; Thu, 05 Sep 2019 01:41:56 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aVYVkfqv; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731981AbfIEICU (ORCPT + 99 others); Thu, 5 Sep 2019 04:02:20 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:49952 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730485AbfIEICU (ORCPT ); Thu, 5 Sep 2019 04:02:20 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x85827F9038119; Thu, 5 Sep 2019 03:02:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1567670527; bh=rsuS3KW8iGDkRX2+94qPa4U+P9JzBJ56k0nHSuoZiok=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=aVYVkfqvx5jR+TjZksNEc96NMbpPQDsvRIT6QtkQYrFzwcyVtfMwxnoxp2CNh2jqv nINlDgU/8IYGMe7eOB6NBwOPO2Cop25MJbEpDQVTb6pf4mTLY1nuwbb2i/jMwUsNXZ o/L3jpP2qOA+qNXuK4yGTNfBpghWSmhuWa3BAHBY= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x85827O5062575 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Sep 2019 03:02:07 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 5 Sep 2019 03:02:06 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 5 Sep 2019 03:02:06 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x85824RT111065; Thu, 5 Sep 2019 03:02:05 -0500 Subject: Re: [PATCH -next] dmaengine: ti: edma: remove unused code To: YueHaibing , , , CC: , References: <20190905060249.23928-1-yuehaibing@huawei.com> From: Peter Ujfalusi Message-ID: Date: Thu, 5 Sep 2019 11:02:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190905060249.23928-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/09/2019 9.02, YueHaibing wrote: > drivers/dma/ti/edma.c: In function edma_probe: > drivers/dma/ti/edma.c:2252:11: warning: > variable off set but not used [-Wunused-but-set-variable] > > 'off' is not used now, so remove it. This reminds me that this whole in EDMA driver xbar handling is mostly broken... Acked-by: Peter Ujfalusi > Signed-off-by: YueHaibing > --- > drivers/dma/ti/edma.c | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c > index ba7c4f0..54fd981 100644 > --- a/drivers/dma/ti/edma.c > +++ b/drivers/dma/ti/edma.c > @@ -2249,10 +2249,8 @@ static int edma_probe(struct platform_device *pdev) > { > struct edma_soc_info *info = pdev->dev.platform_data; > s8 (*queue_priority_mapping)[2]; > - int i, off; > const s16 (*rsv_slots)[2]; > - const s16 (*xbar_chans)[2]; > - int irq; > + int i, irq; > char *irq_name; > struct resource *mem; > struct device_node *node = pdev->dev.of_node; > @@ -2349,14 +2347,6 @@ static int edma_probe(struct platform_device *pdev) > edma_write_slot(ecc, i, &dummy_paramset); > } > > - /* Clear the xbar mapped channels in unused list */ > - xbar_chans = info->xbar_chans; > - if (xbar_chans) { > - for (i = 0; xbar_chans[i][1] != -1; i++) { > - off = xbar_chans[i][1]; originally we had clear_bits(off, 1, ecc->channel_unused); here, but I have removed it for some reason with 1be5336bc7ba050ee07d352643bf4c01c513553c > - } > - } > - > irq = platform_get_irq_byname(pdev, "edma3_ccint"); > if (irq < 0 && node) > irq = irq_of_parse_and_map(node, 0); > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki