Message ID | 1514961731-1916-4-git-send-email-appanad@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 77FB960594 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 3 Jan 2018 06:57:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DB3B28EE3 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 3 Jan 2018 06:57:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 621AF28F67; Wed, 3 Jan 2018 06:57:27 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D647328F5C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 3 Jan 2018 06:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KbPoHXjHKOlML7bmjj4XIPGnMJI5XvuBKWz/id44MIE=; b=eoEX3mVc7IMC56 FGxb4DvV8H19c48DVgyqAaSqBS//wxeK/zPPAkcR9ZFHvGGNPxqxZOCzvmtffxjb4ZLU0iJwGDw6A UtwvXzZ5OBtOhqkZgDXNfkkdNFvNqXchfm9kioqZ7Uv/1Xsit90B0MLzAN9mhqM09YIGaf8bkJhq7 IlInV0NG2qKamKv1TAnpB3uGYRKdsvZGkHQZSLlMgKHfdVWp1x7TaxDpqTdWhSmZiD+dTjGm42VYU WhKUZwj6uAdDvR2iumglJyivq96VChgR2Fcx4/0jRV0I3lGJGDgxKhcGUZPDxpG82aTdb0GkAtWH0 dTsY+4lpoKgqUiR2MTRQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWczM-0004kv-E4; Wed, 03 Jan 2018 06:57:24 +0000 Received: from mail-sn1nam02on0054.outbound.protection.outlook.com ([104.47.36.54] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWcku-0005uH-6u for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2018 06:42:39 +0000 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=3QGD47RjBaM0VqWE79Ut1hwtRc6A5Qg6gQstcaOYk/U=; b=aN+kOK2CV5fm2YFhCzPkIVEXusxPagfnFqMFaUzCfvQB+rrfVpE+jBs39lJfWeIkIHKOwcy6m8xsxrLmypyEwR3PHfJCEblqlBOeQAlmkss88L6E9suCmAY56wrb6MNAJ82ieNYeRX/xSrJ1TKqyFe3UapgNhzGYzKT/KcoGjGo= Received: from BN6PR02CA0044.namprd02.prod.outlook.com (10.173.146.158) by BN6PR02MB3265.namprd02.prod.outlook.com (10.161.152.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Wed, 3 Jan 2018 06:42:12 +0000 Received: from BL2NAM02FT048.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by BN6PR02CA0044.outlook.office365.com (2603:10b6:404:5f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.366.8 via Frontend Transport; Wed, 3 Jan 2018 06:42:12 +0000 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; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT048.mail.protection.outlook.com (10.152.76.109) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Wed, 3 Jan 2018 06:42:12 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <appana.durga.rao@xilinx.com>) id 1eWckd-0002HL-7j; Tue, 02 Jan 2018 22:42:11 -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 1eWckd-0006Sw-5I; Tue, 02 Jan 2018 22:42:11 -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 w036g3Hp011772; Tue, 2 Jan 2018 22:42:03 -0800 Received: from [172.23.37.94] (helo=ubuntu.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <appanad@xilinx.com>) id 1eWckU-0006Pm-ST; Tue, 02 Jan 2018 22:42:03 -0800 From: Kedareswara rao Appana <appana.durga.rao@xilinx.com> To: <dan.j.williams@intel.com>, <vinod.koul@intel.com>, <michal.simek@xilinx.com>, <appanad@xilinx.com>, <lars@metafoo.de>, <akinobu.mita@gmail.com>, <joabreu@synopsys.com>, <mike.looijmans@topic.nl>, <kedare06@gmail.com> Subject: [PATCH v2 3/4] dmaengine: xilinx_dma: Fix warning variable prev set but not used Date: Wed, 3 Jan 2018 12:12:10 +0530 Message-ID: <1514961731-1916-4-git-send-email-appanad@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514961731-1916-1-git-send-email-appanad@xilinx.com> References: <1514961731-1916-1-git-send-email-appanad@xilinx.com> MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23568.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)(39380400002)(376002)(346002)(396003)(39860400002)(2980300002)(438002)(189003)(199004)(316002)(478600001)(47776003)(2870700001)(39060400002)(36386004)(77096006)(54906003)(110136005)(2906002)(63266004)(81156014)(4326008)(106002)(8676002)(36756003)(50226002)(8936002)(50466002)(2950100002)(59450400001)(106466001)(23676004)(7696005)(9786002)(6666003)(76176011)(5820100001)(305945005)(356003)(5660300001)(81166006)(2201001)(7416002)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB3265; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT048; 1:vQK/lLWLkzQD20lvQ7JgUwM2Re58JVggdj2Sy4nlOEFjI8xxevJJm9PLTlqi0itqU2RhUP3aLc+jae5A1/7Z0di3HcdArp3ga/HBXjp3Pfq+RihpL67PC8sGmdzaTLlq X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 825dab1a-205c-4fb1-5cda-08d552751ead X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:BN6PR02MB3265; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3265; 3:FOtguct0kKsSKGs5NUBF3fOaBOHUsCJ9cOA/nFziWHiseVfeTC5mSbe3DT16aWMXPs3XfLtEsaQzUj6ZbG23Kmij9RXOAcxIkQE9D4lMydKCHqtbg8uxQSC/Hjikpxol47h5D+J19iFFy39/rdepCxoMkgDAF60lKsWhBvyi6w7KY5HFDInV62a0SiAHCkND84El8lyhqVaGMytiT2np/6qufqkUiclztvGb4wkzj4202FaVnRD1kyBtTfNVuYEkfYGmrXGRzTI+UQpnO5kd3VzOfS2RpH4AfmQ+tm4y+6TMBTbMIobiiiHgnCBYR6gzDHVp/s/TRJPHyJeHn04uCUrwOQc3iW/jsDmpQxnbK68=; 25:PYNzVKInW/lla4dEjIl4tM6CVv5KNXWfTZFTETBs3lp0nsM47jb3JavRdjBEpICOhMPuLj1Wpj2HK3lsY5r8CI1+kSQJYFo/+/5cWyJIwuJ0vnuJUOYuJHliRDUkLxvil+5+t8zCkUgYXWZWcYouOUJ3B/VxKkqbQ7Bqk2/kElkiyVNQeCR3unaeSHmWubuntJsI/nPpHm20CXrugOZmfrl/LETkmLBYsSJL57x7m85Fd+HbwvnCBcRBZdSv/ypBaeAogWRBPkqrQlgf15KZWKkonIvfIv5UGkXhw4Ek5r3WXK9dnCiy+de6lRbRGxY5/bZExbf400SdhTl6CUA6SQ== X-MS-TrafficTypeDiagnostic: BN6PR02MB3265: X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3265; 31:P9jp9lRWjJ/6rFBDjtauW1fQH3Hmr+IV7OxPPkS1ABBHMfIS8xSily9UDw+Pqb7X5XVot6l4WifD8z0RHBH3lYRnHRRb4eeIaiOcwCxGHLz4WB8OFg6qZ3gh7ipikbf3on0rsJ61WZxbhxK30balJvQXQcLq0tRdyvT7PGWAXUQ06hqtYw5eNjPEI4vfHZNqO29HxwjcuojZvIjvdAOX5xr9MoRIX7KpcqloG3ZfUq4=; 20:i23BjBRYupcvRDY3urd+pwS7rhcVP/PN5bTX79ZekbDwqJjdwzukLtD2q/0czeZnLzNELzGA64zwrTFo4CgA+7KwixOBYSw6EEUAvURwHma9JY2dhNjXqJSu9StaRNYAIZgRlqOMVCj7CigXrPB08QTxwSBW1sgdRAwn3VTzSNKWZc809RONwPhgzjNuoYt8E/VujsW/TKOeRE7/e1zMd1D1ERKC0CwpkxCYrhDZp3MFk8USr06upMUW28HjIkjsHfHnZkfNlfge3msU2u9L+3mXFDXKct+mNndpYM9z/ZBaN3/esqgM4oPLyPY2XbWdtZQXN5u6449Ta24EUNNB+nc1KJFAtboJWZYjdgkWtK6xYCPfX91hn7vrthFau3DWz+tndGKG7tO3wJL+hR1K/9qGASRnnZqOW6ATw2kUt/SJhmSu3V8rNfZh8uZcx+j9N4AzaJbY3Ticc1NEttX3snfHgHOjzRLEuE3LHAczxh3M5x0h3CxMN9dPhHYbutzQ X-Microsoft-Antispam-PRVS: <BN6PR02MB32653C17A518F83C59FE8E31DC1E0@BN6PR02MB3265.namprd02.prod.outlook.com> 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)(944501075)(3002001)(10201501046)(6055026)(6041268)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN6PR02MB3265;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nJCQk9Ubmdpak42QVJVM1hrYkRJMFF6WDViSUtDZjFPaVpLNFcrY05J?= =?utf-8?Q?CUKarw=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3265; 6:SVkoq3OHx8cSQXQzVivDge876XEzmTyLVPpLyGUD3u5xjQCUfDcBaXitlvRqpPpkDgaEt0x8jE1buRdunTQVBwDHQws65x21ubqBwNPgSh1Qy2OMaEZSSMkoR+7/CjtrLClqPSjBeXioHihJ8cMh1i9JZu9S1zGiQnKkpwVl5w/GbiRQYVrP19CYuFCSsfUmsGE7RUuenJDwBJ0XdGP5zFjXWlLDyxHFy3bMC6SCif93lYgqXldfGllqN9TwqN4675vDBvNNlKTVUAP102Psgs+9YKv5xTjUPvC4YsWrTEIEtSDtPRjWv9YH2D4DnIZDbh0zSHK5GnSQH2N1K7JBMkXecY9vsJs+dl6zXXDEBXE=; 5:IRA4uRrDLvRFheidiwgS+jwukBPuMe+XucRNMnHy4B54tNnnTKQF2W1gO1uFLWHTPt15NrSkQyt/y529assIkd6GEbEFCczt892Kcb9zSb916IW08reDuIhWRE72ba6KRHSIWFSVQmtOYC2uP76Js1kxT0JseyT8NTp+SI1WeYQ=; 24:/vZAlMP6KzzyGpClYD+V9PUDpYtZeJYKfVXBnYC48uDH8YhhX4NIsPwiKryyH7MW53+ghGy3KM1uOjp3PqMVKtTKs929i1hqnkptNVeE5aw=; 7:XGr+rqBA9jppAZB32Kfczp7z6pa7VCZXV1ouz5HkElDyAky16equFoNthbPJR1Cb2m+wOtmcJJb5RnEwfbPlego1fbEsA04mAhyaBZwFQZMM+vhlAbtQdnxp5APDsFeRkSZ9zw4YwEBmay54RXqAA5oIL/ZJ2j28xTkLKnTbAfaQF4OpXdRgZMjHzj3AvqfTw8zPvV4NcQHDzBNlIMuOXwP6UB4m0nZyp1JaFzpQUXZTwv+H3EQI/69yHy7ty9MR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2018 06:42:12.0247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 825dab1a-205c-4fb1-5cda-08d552751ead 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: BN6PR02MB3265 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180102_224229_048429_67B55C5A X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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);
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 <appanad@xilinx.com> --- Changes for v2: --> Improved commit message title and description as suggested by Vinod. drivers/dma/xilinx/xilinx_dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)