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: 7630941 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 652409F2E2 for ; Mon, 16 Nov 2015 21:27:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8CA72205B1 for ; Mon, 16 Nov 2015 21:27:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B485920499 for ; Mon, 16 Nov 2015 21:27:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751597AbbKPV1I (ORCPT ); Mon, 16 Nov 2015 16:27:08 -0500 Received: from mout.web.de ([212.227.15.4]:61186 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbbKPV1F (ORCPT ); Mon, 16 Nov 2015 16:27:05 -0500 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> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall 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 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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;