Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752343AbdLUKLd (ORCPT ); Thu, 21 Dec 2017 05:11:33 -0500 Received: from mail-by2nam01on0066.outbound.protection.outlook.com ([104.47.34.66]:61760 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751166AbdLUKLM (ORCPT ); Thu, 21 Dec 2017 05:11:12 -0500 Authentication-Results: spf=pass (sender IP is 149.199.60.83) 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: [LINUX PATCH 3/4] dmaengine: xilinx_dma: Fix compilation warning Date: Thu, 21 Dec 2017 15:41:37 +0530 Message-ID: <1513851098-15787-4-git-send-email-appanad@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513851098-15787-1-git-send-email-appanad@xilinx.com> References: <1513851098-15787-1-git-send-email-appanad@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23542.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.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(346002)(39380400002)(376002)(396003)(2980300002)(438002)(199004)(189003)(2201001)(106466001)(23676004)(478600001)(9786002)(5660300001)(47776003)(2950100002)(77096006)(2906002)(54906003)(36756003)(36386004)(316002)(110136005)(50226002)(2870700001)(7696005)(4326008)(59450400001)(81166006)(7416002)(76176011)(39060400002)(63266004)(81156014)(8676002)(5820100001)(8936002)(50466002)(305945005)(6666003)(356003)(106002)(107986001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR02MB1334;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT064;1:MBgITaf0+cUZdPNhEsaC2jJqy67/lb5zW2ZQXaPGm0uO0OIjGeagMr7jgn1hu2REN1ur93+oqbnCobjOQnQWDTcKWqWrsoGiSNfXtrlsRvF7oVlktuH5dMx+ak3HZ/kM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b18b7eda-cfa1-4652-4d7b-08d5485b26ef X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060);SRVR:CY1PR02MB1334; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1334;3:kYh16h0/UbUaNVIhCycdq8LZDYrpfS+0SNPLKMk4QsNnvRv+cXfXlL4RJwNlisiG9/PxQbEmpN81/q5JveQhfMajSV8knL4FwiX7ogl9Fnw5md34gK400VjT5bAF0Ofbs/ogra5e0wvkMthcj5wZwf08y54lFcaYYRUjalPFlcM7DcBVLbIIDYRcw89Nks0NM8aJLZ3r+QJWGd/5ewKhT+SZXWZNUDYGCmroGLLGTCRhPoOnqW2lpfoylCRrSEiaM36TsCv+T0vn+lQGmZVUpgRaxHevxB9I9+Eg7SuKZbOUCwtCY+nYZGnRRzIjFJFgCrkUG95lIYmAYvbKBc6LvosbLrFRdsicRuLVPtZhfjI=;25:4aA/yCDjhxEl/oCvVl82Fwo8DTU7vvdH5+uCiOg1Hj7XO2N4oi5oWrMreUm6cFcY/U5qXe6MGtaYUXT+E/JBQpzbLE+VyL2jhTDDsKBEeZf83GZNOmUFj8sz8L1W39FiJHkHvuqwXsjS68rxN/tJjTsEdfTikxbjUct1y6YHfhRi1WUtUFIiB3Oa+Z5/J3ULPL8+oSmi92cdLv22wgNP+IvjIur3vZky1B6PxFb1ubixWIOc00TEinrBDU+/E/IFlrTILt432jVyZDxexN4mqO6u18YQr/eEwf3voyYBl/3QM6QIX4Y5FZmhf3q0pYD624XkmxApnXAaThbnVyHJE0bBWGGoCSIiaOV50+c7dVA= X-MS-TrafficTypeDiagnostic: CY1PR02MB1334: X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1334;31:tiZSpjU4WVcVEFyMqKocKtpLT8hduwVR+8DuVPAUgx57lRPoQdpq5EtUVglyNtlEOrR6HDLKpTDQBNqEXLAlQevxaFVIOSxhAyj6LEgS1LexurcNhLtJz6SgEaJo1MSSfuf8Ue2zCAS+pGdrVO+/jNh+l9Phd4VAGiJHjkS8rORfIBCr9LxhfQmb2SQSK/re36Vv7R5Rq8mYODg8V/l3BVZAk3vshS9ftr7n+USfXbY=;20:n+tLZL8dMKsfp2Zj4X+D20M4xfUMqmswcmG4YXrgzjaNFCBdhOg7+a56RocPhtEQ7cLMA/Z835bd/nsAu5ay+jMKA1CCh3SExK/OqjBP+9OLBzPQlW7UAli+yHhCNfmwBq/aTaTxs6ZDHEAIJH1IjW1A5rqrOGdaQ4C+VN9+z7UJFLHxQet5T6uymxK6AA+IGjUZ9ZOqvt9gUfG4B2UlnqBZMzC+95Rszpm/A2LPsMIU6HMNMrfrC27QWKHOKRNBK7fijQvtwg4UVq3Q4RM8He8vG/9TqoEkjuJuVN3qBuadYHvmEZUAHNPu2NYR8FH9PlhOK9cpiJz7CYLvoSF5kRFFtH8bVMWUIYBEmiG//iff0b/GDKwqDHhN5ovYx4B92zPjdRQvhVh/430uuLA2tNjlOskCZoK4T7+3Gh0CzgbZvwvenmDjc/eqAdyc62TV0i/Jn0VMaW3aR127y0Q44W5opcKM6UQZeasmuvFGI4GBG9nQCsmSQ87k2H7JCKBb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93004095)(3231023)(3002001)(10201501046)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011);SRVR:CY1PR02MB1334;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR02MB1334; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1334;4:4NhtcjCZtmfRz0bIY24rIQCb+KciygA4sMlTjce54e81NecgWrO0/vhh1cNez9IjN321ug3dm2m4VaSQ6InQHoQhlWPXTyoZz+0LZmpxTK3ATiN0zKKrA2nG/kPLfRUT7rSwsCzTqvujhQNbL6Ohd6Dpmy4xJjtbqX5aeN5oHyrC7S1Ho//tDlLnEerClUyiRsQV4iH7YRpv6fESo4o/88DxF8+gzyfG8AdrYEFUba4ETnhTUuEau1BcRySISuxZvHePBqAb7FAVRwcjKG2W/W+6gFkE4FS82SOzfZS6enAiYNM3IvY/EvKlAZg5wE42 X-Forefront-PRVS: 0528942FD8 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyTUIxMzM0OzIzOitwNjltcTByQk1JbXFWLzdXeWRGMW8rZXZ3?= =?utf-8?B?S0E4MzZGMjhNbUh3R0xla2xyeTY2em9qay9CN21nYUQ1S2hIQVc1UE9oa1Jk?= =?utf-8?B?bElpak0vVWJjUlN2dlNXaURhZ3NhZTBQUnAwaDFzdm5QQXBPWVdPYy9qRVRT?= =?utf-8?B?NFRkaCtrbXRRRVJiZHBMdDhSWW1pT2ExY2s0dlpDbjlrMUd4NDhGYncwNmo1?= =?utf-8?B?NHVBOTRncHY5N2VOU21FM1RpWlIrS3BnZ2cvUlVuVTVWditXZUhZaWlMdEVK?= =?utf-8?B?aklpY3Q0RmVLRkhpR0JIVDA0MTI5L2ZDS05kaGRhOFNQTGMrUUkvVEp3TWJP?= =?utf-8?B?WjNSckRGZWR3Um1XeS8xYjlaeHRDcDgvQ0oyV29IZGVWNXFR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7JzPrUBjRWw5Hu0F7KUooREYSzbGr55rzWS7AvkoAcr8o1Xn90QQQ0HrMd0yUyXTc8MS/eUPgRffC5KKriQrFMZPjTkVqg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2017 10:11:06.8961 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b18b7eda-cfa1-4652-4d7b-08d5485b26ef 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.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1334 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1374 Lines: 34 This patch fixes the below sparse warning in the driver drivers/dma/xilinx/xilinx_dma.c: In function ‘xilinx_vdma_dma_prep_interleaved’: drivers/dma/xilinx/xilinx_dma.c:1614:43: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable] struct xilinx_vdma_tx_segment *segment, *prev = NULL; Signed-off-by: Kedareswara rao Appana --- drivers/dma/xilinx/xilinx_dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 8467671..845e638 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -1611,7 +1611,7 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan, { struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); struct xilinx_dma_tx_descriptor *desc; - struct xilinx_vdma_tx_segment *segment, *prev = NULL; + struct xilinx_vdma_tx_segment *segment; struct xilinx_vdma_desc_hw *hw; if (!is_slave_direction(xt->dir)) @@ -1665,8 +1665,6 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan, /* Insert the segment into the descriptor segments list. */ list_add_tail(&segment->node, &desc->segments); - prev = segment; - /* Link the last hardware descriptor with the first. */ segment = list_first_entry(&desc->segments, struct xilinx_vdma_tx_segment, node); -- 2.7.4