Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750738AbdLGFjc (ORCPT ); Thu, 7 Dec 2017 00:39:32 -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 ); Thu, 7 Dec 2017 00:39:28 -0500 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; From: Kedareswara rao Appana To: , , , , , , CC: , , 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+z8S2yvIZTeMJpPvw3QE=;25:r85+NdqeAdqQFfVf/+6GPXekZk0ejdR6ZxAMNt2ck1z013O1Vk6EOBlb1c2lIyDhGM3/OAj9ZczHgEpRf5nssqgmQjV9B9sKFvKorr2/mJYK79EYVoDCEsXp4cJuQZG93aPqKRQSQ9BjVxN4iw0wXNwnMBoKXvcxzCIUtbcUv7D0xQmssBNar5ON7FY9wYVMTweoNOdP3K3E/06Otu7BSp40wJUGI8gRPuZmcyjEJfEuNOq+GcjYtRIlo7brAEXKDidZXFiovOJlZ1NkALHZllU2FyXfTDIEpMfnDHIi0mw3kw6v3Njxp2p4rJ39J6quE6rTSqhNhxh3zV2bWaNT0Q== X-MS-TrafficTypeDiagnostic: BN6PR02MB3377: X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB3377;31:kP8nwWqPQ2tzgPFlXIkr8wIkn8MBVxT7JY5yXQOnBKk6e/wJKW1YbS7HF3ckwVx9xPxXDuGMq8oiBsP1nbInwdSpiFfWD7o/yM/mfSrwU/VOx6CS+dYglcCcw7UI/EZaoiZDAaMFBD7IpNIStY3nVB8rCN++38VXBaE+QDADDn9cEc7d5IJK3+sgaHVGl1/z9hnFxIHAMAMoJR2eiBVLz8AmpeJt1pCwKUHtPTi1xL4=;20:xvsefgWVmp3Hldegz+JsbdugvRJuuz4tbo+kK/BcJLQaSh5VEQ3TkxME29DiRU5KsJz3e8PwBvMnG7Dt2FSTMSZkZcb1rbOSbgts3dthWr1fQnbh7cDkZSOB+6UoXx/Xsz+esx0XpmTqE/fkZUbUoBttS8oLvNhj2CYvpR4iTUjhXqErCCbbM9R55SCibPu7JJhbfFOwfO8xAoAbExzKqpDH30gI3qpoz2yMRoWUQECdOcBpJEbztaNGYcHHu1/i61Dch9PmCu52YNWz//eqG7EPqYEb/YAEVtTEyIqmpLXK8Sf+9FG8tR7PYc3OQj8jOIqJ7anIE0q3Lj/fCY36Qe1EuppLUTrAIKwjtYf1v2aRjTlioQwJVhG76ccwoZfgnYsvHYGXOvTr4lzBkWfiN7/43zk1PSdhDJpZ6fwHRSK7lCKBVMT5eLXCOTXCBSSBdETbwSQtwvbYHTYIwxjQWfIcnIaz3qpJcNqOyKVV58IUNsIhgQDmJoZloBTSDvzp X-Microsoft-Antispam-PRVS: 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+5dYVCZOzOzuITcPhJSeOCtZ8wov?= =?us-ascii?Q?xbKHhi/+6OgyMaM2vlnJNpLBauvimg/r26wCLQk/4NEy/oocHWWV6tJnhmdB?= =?us-ascii?Q?sperkBJZ864hXivlTu2Yi4HDP1/z/dZJiBXtrzfDFh6/HYRSlUnhuFojOBkZ?= =?us-ascii?Q?jsCs20tQ7AEIV/C9M8yKRV2QcfGB46JltrapbGaISavVu6DtZ+VwcXQGQS5J?= =?us-ascii?Q?3NsMdmk6cscvRl/9HA0VU8uXloupx7MTwggrpNqOX3m9ZpdU/KynUUaE0Nd0?= =?us-ascii?Q?L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Eh8yvylJefOq01la0ff7CHcG0wfQMB13U2Egc5M4ynNxELh2avBCj2GmFdOAx9p51bVY5rfMYChsy7P8UAikuvXBQHlYxEwl9GT32eizOOOlAviMKdbG7ROj95hP0=;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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 34 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 --- Changes for v2: --> None. drivers/dma/xilinx/zynqmp_dma.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 2.7.4