Message ID | 1512624268-13944-3-git-send-email-appanad@xilinx.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <dmaengine-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C2D2A60325 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 7 Dec 2017 05:39:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B54A728BE8 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 7 Dec 2017 05:39:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8AE42A32A; Thu, 7 Dec 2017 05:39:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0533228BE8 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 7 Dec 2017 05:39:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750788AbdLGFjb (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Thu, 7 Dec 2017 00:39:31 -0500 Received: from mail-by2nam03on0070.outbound.protection.outlook.com ([104.47.42.70]:2080 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752457AbdLGFj2 (ORCPT <rfc822;dmaengine@vger.kernel.org>); Thu, 7 Dec 2017 00:39:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Pq+CUWYdfQGzSu5lMXp+EnJunubnUtQ3QM0b4UB/Obg=; b=l3+IWp6rrDRyYpt+XLtVitVUld4ZnaZ12ov1XNiiRpMpJezjOta7Bx54CWO3rm5h8j1qRcCliGSwEC2Ul8ynsD1j6hO/VCV29xd9teOKZS653HwETsH3YkiTznyeLLM21q4xefHdmoeB5Koy1Zezp1v+q6SIXWqQEZg5pwlrk7M= Received: from CY4PR02CA0045.namprd02.prod.outlook.com (10.175.57.159) by BN6PR02MB3377.namprd02.prod.outlook.com (10.161.152.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Thu, 7 Dec 2017 05:39:23 +0000 Received: from BL2NAM02FT023.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::202) by CY4PR02CA0045.outlook.office365.com (2603:10b6:903:117::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Thu, 7 Dec 2017 05:39:22 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT023.mail.protection.outlook.com (10.152.77.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Thu, 7 Dec 2017 05:39:19 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:59823 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <appana.durga.rao@xilinx.com>) id 1eMoty-0000dp-FV; Wed, 06 Dec 2017 21:39:18 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <appana.durga.rao@xilinx.com>) id 1eMoty-0004DE-BY; Wed, 06 Dec 2017 21:39:18 -0800 Received: from xsj-pvapsmtp01 (xsj-pvapsmtp01.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vB75d7tr013839; Wed, 6 Dec 2017 21:39:08 -0800 Received: from [172.23.37.82] (helo=xhdpunnaia40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <appanad@xilinx.com>) id 1eMotm-00049j-V8; Wed, 06 Dec 2017 21:39:07 -0800 From: Kedareswara rao Appana <appana.durga.rao@xilinx.com> To: <vinod.koul@intel.com>, <dan.j.williams@intel.com>, <michal.simek@xilinx.com>, <appanad@xilinx.com>, <sr@denx.de>, <dave.jiang@intel.com>, <kedare06@gmail.com> CC: <dmaengine@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 2/4] dmaengine: zynqmp_dma: Fix warning variable 'val' set but not used Date: Thu, 7 Dec 2017 10:54:26 +0530 Message-ID: <1512624268-13944-3-git-send-email-appanad@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512624268-13944-1-git-send-email-appanad@xilinx.com> References: <1512624268-13944-1-git-send-email-appanad@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23512.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(2980300002)(438002)(199004)(189003)(63266004)(5660300001)(106466001)(36386004)(106002)(8676002)(81156014)(50466002)(81166006)(48376002)(51416003)(76176011)(7696005)(478600001)(16586007)(39060400002)(316002)(47776003)(4326008)(2906002)(54906003)(77096006)(110136005)(50226002)(2950100002)(575784001)(8936002)(305945005)(6666003)(9786002)(2201001)(33646002)(356003)(36756003)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB3377; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT023; 1:zhQu6MkZN87NfvyWi7g9sj/J2ECpv9xYLy7cd7V/HNOTIWG/ZHBAidyIKHxmiPzqwmB+OdC/TZOHZ4ZUDU+BUg3Q5cArXcqtG76GZ55DFzn34aODIhFpMwqGmIweKJ8s MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c7fb7c7-670d-41d7-f45d-08d53d34de7b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:BN6PR02MB3377; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 3:If2Fd8Lu/eoIuOYvZNEgNSnIxnqOad1WI2onYRsGdCE5dhn3FpIPmqIWIrctDpk8XnXYksgOSfo/Kw0zZLUv2mTzaSaCCheq0iEvgsKAqtqKXXuPJyOz4WNZhpKepNB37wtwG0eDVIEdaGa67leEmYymV3QUXFfYy/xOcG5+/Mv4Gi3H4heVns+B4tailyULFzFG5SdFjBPAcd0Op/tOcHMJnEHdM2xLl/5Ft4JgLTrlijIj900Cee+8qbhfcBWcvDRTxEM60Caerz9lkZCFsv+XhxmWwP5V9e8vIpaL/sGy3KuLbQ4HrhXNQoVokjhpMlDHX/0nLr+oIp/U80B3h9X+z8S2y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XOvTr4lzBkWfiN7/43zk1PSdhDJpZ6fwHRSK7lCKBVMT5eLXCOTXCBSSBdETbwSQtwvbYHTYIwxjQWfIcnIaz3qpJcNqOyKVV58IUNsIhgQDmJoZloBTSDvzp X-Microsoft-Antispam-PRVS: <BN6PR02MB3377544869481017F5B07E45DC330@BN6PR02MB3377.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(20161123562025)(6072148)(201708071742011); SRVR:BN6PR02MB3377; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR02MB3377; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 4:6SXZXfFyIZzHuW+zSOYGsbGPtV4T3f6l8x1/lZaR2zEV2Wm9/dfbm88XVJRIW3CAngnZ20Zo2wKxBaO1K84KUAUU/+UR2xTwxXtznA+ssOgaKOVPGCfaRtmkQAquwFZs18iKTsbkJB9BoCeYw8IrUuYx6wGmTnSqWwmdwxw1dNMphEiibcj14mFuelPi9nu6k5F6KoEP1NbBqMTP5S9BJkVvR94wkNWRTFC035RPGkiEpnBRCJHTqTVCVdIPAudc60t3xaoiyQkppgPl6DqrHSJR4JfYLJLd+LiRjsMckcYEAXk2/znqxRHIfSbw+L72 X-Forefront-PRVS: 05143A8241 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR02MB3377; 23:u5kLwM3GrdeTHvunnN68q9yT6RZwpkVyiyXjlgwqg?= =?us-ascii?Q?Gp3YZ8EqlfM3tWL/RCrnz27cL/57RnVJzgAnSLM3JiSfIF0LnTbtjsS1oDVx?= =?us-ascii?Q?kx+FoFnCgW8kmy2NyKDm3ty385FTZFQU+5dYVCZOzOzuITc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+VNfp/AbiFUqMHA+tOZBckZ3e+Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 6:UgPGGGN5zLGD3VIoCfpIvJ40Tk5mIJsBN0KJ0+aJ9PJ5+n0ffRyqUL0cb/QYhgIJzQSKTqnlBMlBn0wCm0LZeT2gqWDZ16NPqhk6P4V23Yd9MIzTfV1c9K9+ISPp4BoI9CTe9bmNaNVU4mD3WO0wexH6AyyxH/2AA606LXaAvrYDuCHNJyeTe2SoFENYYSD8XP2I/RU9J68CuoGTEONmTyh6huNFEFEmVs5mb7YadnonlFEh8yvylJefOq01la0ff7CHcG0wfQMB13U2Egc5M4ynNxELh2avBCj2GmFdOAx9p51bVY5rfMYChsy7P8UAikuvXBQHlYxEwl9GT32eizOOOlAviMKdbG7ROj95hP0=; 5:dW+ez59zMbRR1HaEVekXtS58iwm8BOOxIg6q3mD/D2RNQKrjkmDYf+NREHKaWZIAx261IYsmvy/iYMSaaCunIetqe4uzKjezF2sNr0kCAWAcBOq9W/sSo9/oiEIcCLkfqB10FBZ2fH2oxYqUh3sLNlv11PNLJgj6cS/3ROWX/88=; 24:v5THHBHtXAnM78TiqSIQclbF/s3z2L0/ydxG/bSNvOKDI9eUBVCCNYXG9Qo9daTwnomQo7fHkAzDc8nEoFmiRFWRWszoWlW5EfE1xT0h6XM=; 7:358YcwkVe9MMQk2m+AL+m9KTM8e5XB6oFUWdC8UeJv0Ad5qwR/JVi0oFZsyXr19Bc9ALA+jO+Brkjy9ww/q6OukQZPnwQRa7bqOubuWg8nk4SSn7GKBV63Cz6qobEYVYy/wY4ImP8l1f3wvyBH9GDyyOPV+kVn5lduLHIDkkV1sDumuBJGAA+7GHy4cxys1dPPQKK1q3uxaxcKIKLy9l/4tkOWxZ2nqjE5MMFvU0cRT61O93+zNbRulL+M5sgvgI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2017 05:39:19.2863 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c7fb7c7-670d-41d7-f45d-08d53d34de7b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB3377 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c index 4376e4a..b9b5c0a 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c @@ -524,12 +524,10 @@ static void zynqmp_dma_start(struct zynqmp_dma_chan *chan) */ static void zynqmp_dma_handle_ovfl_int(struct zynqmp_dma_chan *chan, u32 status) { - u32 val; - if (status & ZYNQMP_DMA_IRQ_DST_ACCT_ERR) - val = readl(chan->regs + ZYNQMP_DMA_IRQ_DST_ACCT); + readl(chan->regs + ZYNQMP_DMA_IRQ_DST_ACCT); if (status & ZYNQMP_DMA_IRQ_SRC_ACCT_ERR) - val = readl(chan->regs + ZYNQMP_DMA_IRQ_SRC_ACCT); + readl(chan->regs + ZYNQMP_DMA_IRQ_SRC_ACCT); } static void zynqmp_dma_config(struct zynqmp_dma_chan *chan)
This patch fixes the below warning drivers/dma/xilinx/zynqmp_dma.c: In function 'zynqmp_dma_handle_ovfl_int': drivers/dma/xilinx/zynqmp_dma.c:522:6: warning: variable 'val' set but not used [-Wunused-but-set-variable] Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com> --- Changes for v2: --> None. drivers/dma/xilinx/zynqmp_dma.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)