From patchwork Sat Sep 17 15:17:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9337171 Return-Path: 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 07F1760839 for ; Sat, 17 Sep 2016 15:18:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED33F28C13 for ; Sat, 17 Sep 2016 15:18:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E205328C5C; Sat, 17 Sep 2016 15:18:11 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 90F4528C13 for ; Sat, 17 Sep 2016 15:18:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbcIQPSK (ORCPT ); Sat, 17 Sep 2016 11:18:10 -0400 Received: from mout.web.de ([217.72.192.78]:54618 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbcIQPSJ (ORCPT ); Sat, 17 Sep 2016 11:18:09 -0400 Received: from [192.168.1.2] ([78.48.101.40]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LmcnP-1bCUaG1bzn-00aEjJ; Sat, 17 Sep 2016 17:17:39 +0200 Subject: [PATCH 09/24] ste_dma40: Delete unnecessary variable initialisations in d40_hw_detect_init() To: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Dan Williams , Linus Walleij , Vinod Koul References: <566ABCD9.1060404@users.sourceforge.net> <92810066-69b6-94e7-dcec-a28594b1328f@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <2dc8cf1c-6bf6-a320-0c61-c25835ca3146@users.sourceforge.net> Date: Sat, 17 Sep 2016 17:17:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <92810066-69b6-94e7-dcec-a28594b1328f@users.sourceforge.net> X-Provags-ID: V03:K0:wuAMUVUVcmDmWjL2NQVw6KCTJUSDcqDVkaINLIHY661nUpLbi04 /cVXyELq2ObyY1IAqZDeLPHbzDskCs/FfTsVci4SoHx7sq7U+va8yp/c11thLrRmY/0Fk1k IBbza83aWd6gZyMDMtkaYPoZs4VijbDSJ9B+bDo3f8j1dyeTQTK7zpMGJ3v7pq7+WTrSmGb q35sVDiytI12LZlfrwNEA== X-UI-Out-Filterresults: notjunk:1; V01:K0:iUCCKJLYLhI=:9x/01tjgyhvxjjrZ1+5cxy rQFBNCk0dal/Tq9NselbcQAePYvc6k0XmrFknJ8ZcLjUL3uocGxuRX0E5TjllTJDma4TlADH3 iMmabLGZ/56SFVnKFVHybRu8em4xwyPZW+nMuj7ExFQD1IO2vTuh7w/c/CcqML9kqoM8bvqLO W/4acGjqOUIaOz/q3mMmSfTL5SJywqiUpyQMWb5fwWEmaGpdq1J3opeu7TcEQqjpMaFq7qYAy DuCnNuhmDrX9SvZ3aaTs0ckBOA1+xnwEnvbWR+zvNoeD9+umCn4foCPkPhmeID1I9sNxfn+Gw I8uFVgVlnr4UIcrzFiYGh4tG7RVrDJojaGyKSEt9RwCYGFyzIM0sw+jqTZXYCyS/Y1vkN56qL MJbYB5XfGfbM7K9FV33P8pRlMGYPjMDNQzkLWpRXGZo14EJZpcmZ6hgmCzTHzqrSE7lHCl3iz 05jeWfhPytdj/D/EvLa4XvrWqa7k9wv78HKYox2D5yTKudZZEadXwEUapSInkgCQCM7PZWf5O 3MdIqE8iNxoqVlF4JcxNQyYr/Z2U484B6uVpT8kNahuKYJHFhDxc9YpAHCz7mmeoyxMw5gNLU rAIAizuUJwf1PJWRbraTkUlvuK+0AZkr6I7GyQOTh7uFNfBKaVLXJK9DIKQnL3FGmW9a5Stpr sbViVGFLdoOs1S4iroQGdbNhWV9SMBz0QcCgiGJCgP/0cEcBvSnN+XqWH1b9UDDL712OKzXN4 TiQsDbuJU/gxb67xhwvVrpJQypFLuaSUcLb9+bjReVAyI4oEEzKOvmlguFF4Uaqogk1f8KmJb BIfnAYK Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 17 Sep 2016 14:34:18 +0200 Five local variables will be set to an appropriate value a bit later. Thus omit the explicit initialisation which became unnecessary with a previous update step. Signed-off-by: Markus Elfring --- drivers/dma/ste_dma40.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index c680dd3..ebb00a8 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3142,11 +3142,11 @@ static int __init d40_phy_res_init(struct d40_base *base) static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev) { struct stedma40_platform_data *plat_data = dev_get_platdata(&pdev->dev); - struct clk *clk = NULL; - void __iomem *virtbase = NULL; - struct resource *res = NULL; - struct d40_base *base = NULL; - int num_log_chans = 0; + struct clk *clk; + void __iomem *virtbase; + struct resource *res; + struct d40_base *base; + int num_log_chans; int num_phy_chans; int num_memcpy_chans; int clk_ret = -EINVAL;