From patchwork Mon Nov 16 21:26:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 7631011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 94829BF90C for ; Mon, 16 Nov 2015 21:29:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEB4A205B1 for ; Mon, 16 Nov 2015 21:29:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DE48F203B5 for ; Mon, 16 Nov 2015 21:29:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZyRIo-0005zm-V2; Mon, 16 Nov 2015 21:27:06 +0000 Received: from mout.web.de ([212.227.15.4]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZyRIk-0005qW-4h for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2015 21:27:03 +0000 Received: from [192.168.1.3] ([77.181.163.50]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MapFS-1Ze0lE1x5m-00KPfE; Mon, 16 Nov 2015 22:26:34 +0100 Subject: [PATCH 3/3] ste_dma40: Delete an unnecessary variable initialisation in d40_probe() To: Dan Williams , Linus Walleij , Vinod Koul , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <564A4899.8040109@users.sourceforge.net> From: SF Markus Elfring Message-ID: <564A4A08.5000705@users.sourceforge.net> Date: Mon, 16 Nov 2015 22:26:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <564A4899.8040109@users.sourceforge.net> X-Provags-ID: V03:K0:+1bcGpcjTsGRvyxCOhMr/Uxg5arEnQvWG5qIu73P36aQjQuUgHy jhdcXBW5okL3tOivmyuHXlEhLcm/Fsb7Bgk+GWnqwWC/m0p/WMYarhIZoH3/CEo0NI6SOdi rXJkhFDWSlG6MxvIdx+Vq+9eydKhXadGbdpyqIyPsX9bdT3tRMi4+9eycKnSzT6M/AuzIiU Kz6dPc0FD0n0ZvLN38Ljg== X-UI-Out-Filterresults: notjunk:1; V01:K0:Zj7uFaD/FDU=:6YB6cidbBT9uo3UzXVmaiw 8+zgjMLRZKUAqE54VF9kKOS78oSKQ4zmAhXDjM8aUO7oJ52AGYtDwl37YHq3k85AGwfl5D4iy QUe2pmue4N7tXRhdgEftftL+rdAQcI6VHWWXW7Uau8Uya6xBDAFo0qb3DHkj5tyLD+NOTLr5q PBo/SYRAR8Ist5TAobGpAOVtOIlUlA+gDd3OvxVPLrgkte/hUDbzz5K9e/YiT+lf/2fPkXFqO FN+vrsT9xSivTkq1GtDA1Jk0WO780uTOeM778U97HJim2dOwzDcEw1pKMKCXuO+Eau13bKkb7 G+3fmueREJ6k8/jPjt0/uiFqrE7aA6ulKjhGflBONmk0btrZbO4YWzFw7CKFZSS5ip6R+SW8h vGfyWd8mGgTjIPCYvjk0tRddHfrYUigUh9c4UPhw0morPHLcF4VSUiYsue7ycqmWvkaGd2g2t BCsNB272nHewV3Le6Q+Lxe9ezwh7WAKBOGDsQ1lnDyDqJpqIvwPwCcG/BDZgHfYxkKEdb5DIS gvjSkvM9wNKJWwk3Mawtka3fRmh/9T4a7KF7EQc3szg6KSs/rDxyC/t57MazzzgbtfYey4JF0 LVtDO7pfhkJl4F0gSA9KoKPCws3qezKFV7oLBMPemXzvvttfIqMu7o7iUqhWYuyZMzeCf3jMz tHyIs2AJ4sm6f9ReQ9ynKzv1BdTYfo6jJF72zseEcjYUIpXl59S16Nph2BAMXJ1cwynQ76toE Lq9N2KKPHUQHY6yL1qHIJz8s87hzjs7UwrHpqHrzhyWzIg1d5jD0arh4jVt1wnDXm08FgQha5 C2on18w X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151116_132702_729069_94F96214 X-CRM114-Status: GOOD ( 11.05 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 16 Nov 2015 22:00:28 +0100 The variable "res" will eventually be set to a resource pointer from a call of the d40_hw_detect_init(() function. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring Acked-by: Linus Walleij --- drivers/dma/ste_dma40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 8ebfde1..6fb8307 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3544,7 +3544,7 @@ static int __init d40_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; int ret = -ENOENT; struct d40_base *base; - struct resource *res = NULL; + struct resource *res; int num_reserved_chans; u32 val;