From patchwork Sat Jun 3 18:29:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9764443 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 85C2260360 for ; Sat, 3 Jun 2017 18:29:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 806D028475 for ; Sat, 3 Jun 2017 18:29:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 751D928557; Sat, 3 Jun 2017 18:29:52 +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 2379628475 for ; Sat, 3 Jun 2017 18:29:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbdFCS3t (ORCPT ); Sat, 3 Jun 2017 14:29:49 -0400 Received: from mout.web.de ([212.227.15.14]:56738 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbdFCS3s (ORCPT ); Sat, 3 Jun 2017 14:29:48 -0400 Received: from [192.168.1.2] ([77.182.192.46]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LhvUI-1dcrVw1UHa-00nBw1; Sat, 03 Jun 2017 20:29:22 +0200 Subject: [PATCH 3/9] ARM: OMAP2+: McBSP: Delete an unnecessary variable initialisation in omap_init_mcbsp() From: SF Markus Elfring To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <9d9bee0e-01b2-ff5d-1bb4-76b401208cd4@users.sourceforge.net> Date: Sat, 3 Jun 2017 20:29:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:LBe7JYegrAmJc+JFpvJMI6+zjoX113SeKw1lzv/wtsJH/cwsFo7 Pb3XWZ5wMdh1YMY9pQmsgJ9fg8PyNVk1pKWLOhYXpymXUl3byAaRNl/Sn+RK9ogc6PD5ea1 02ixpmL73wVqVijF2I5PxJ3t/273flODJaWQe6+KuGuhrAL1qy1kSii/Hl/2M2vAY8LrIV0 iO2qJbzZwLXS6RaDLLjVQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:/wXlzm30vvU=:y6P9rHnt0j+dq+Qh0cv4yr svUdrA+jr13YERvOsDmquNa9QPpmJAZNJtApAUx2hFgwmIEabormcEFFleXBNUwVE6qDQbUdw IW9dQ3Ozyhv3uiGvcjV36t2tOQKGb1M/z+omiD9qAq3vY9org/HX20WijfIBZRR57NJ4NccL8 k7RgwKBwfr48+10gi7wb9pSJILZKNKfgy91sLdGMrFmwSnCaZ5xTfbzCxSOciPP4H+CQrfKED stMvDIyITcwkGgJGnz4TDq9ci7jleOoiqlrMu8yfRz2f5+AZsSUcIAKohDrQQqwFHL1DnefJu wek4Q/tF/xwYVKSlLNj2nTdKYpg6MGn3hnGe95Eqq6xwHqyZNilSPqzSO6QGP7rkiqck4ZEjI tkfbCPZN9e3wNC4JTe4LT+ar+09aCqRb4/VUAu9K9nHWVyyb+NMaN6SEINXNSlvCEeJZrnbBh 6bZaebbDBD1o2Se88WTX8e30gSEodCBFF2zf86m8gih2LzVqqUTXCaoQacu6RmoNa/VU7cOB8 CZkol99Zfy9VpmO61pb2q5zJEa7v1sErHuPZ7iHt+ycZePP3Ygz/HPcyc0DguoM7KaCi5yG8I A0+MySI4i4Cafp/MBprNNOW78D52tCActS2X9zKZGmBgkUIPByfrTEWtQcpwSK0xAD31vkC8k Krem6znATc7IRiWnR8f7SxRZr8Z56zsfSyT4KbDTUBvd6bEYbRVQmJPXF6wjFSznNyKqLbVDP +mNt7zg1JhNP5yR0IOAhuPcdBrUNgjH8337kZau3ZyQTpiMSZ0wy6swyz+90oLP81lsaEaQEf lfOr1Pm Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 3 Jun 2017 17:54:19 +0200 The local variable "pdata" is reassigned by a statement at the beginning. Thus omit the explicit initialisation. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index fc04be74e064..53c4a30e2963 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -59,5 +59,5 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) int id, count = 1; char *name = "omap-mcbsp"; struct omap_hwmod *oh_device[2]; - struct omap_mcbsp_platform_data *pdata = NULL; + struct omap_mcbsp_platform_data *pdata; struct platform_device *pdev;