From patchwork Mon Nov 27 18:01:14 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: 10077725 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 C5F84602BC for ; Mon, 27 Nov 2017 18:01:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDC24289CC for ; Mon, 27 Nov 2017 18:01:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0F1428AB8; Mon, 27 Nov 2017 18:01:54 +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, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5559D289CC for ; Mon, 27 Nov 2017 18:01:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF94889E5B; Mon, 27 Nov 2017 18:01:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [217.72.192.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id BDB6089E5B for ; Mon, 27 Nov 2017 18:01:51 +0000 (UTC) Received: from [192.168.1.3] ([77.182.143.129]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LwqFo-1fCTQX06zQ-016Ngd; Mon, 27 Nov 2017 19:01:45 +0100 Subject: [PATCH 3/3] video: au1100fb: Delete an unnecessary variable initialisation in au1100fb_drv_probe() From: SF Markus Elfring To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz References: <980dc009-429b-ad88-966b-0e75808cbacc@users.sourceforge.net> Message-ID: <37b97970-6cd7-5c85-a613-8c558b8d4fa0@users.sourceforge.net> Date: Mon, 27 Nov 2017 19:01:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <980dc009-429b-ad88-966b-0e75808cbacc@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:VgtRiMAgQnt8kXNwlfLd6gM8naNKyoJbQD+7Lue1Tc45lSxtiNl G4otEiCwTWOjmkCFyEKe0EjxADBOfv5iRcTYv4KVLS5V2QdVq9A6J/N8sp7MDWW58qhnRBP 80nkQxR/F6dmj8v4oPfQGLA449a+IDYgozAVSEN3ChAnh91cLOb1Jpm8Pt7yN5TKqzPKzUv bNzARonMBBxHY2L7Eku9Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:wC5P9K5w/oE=:sH8Ck29YFzhfYazCiu1el+ Mnq6K/R3V+/ZIMBEhmLpxeNoF74fWVbniyO3PLwk/BoU1f7qIkUDte4JaxS5duJ/s3xkBwtQp gBur8hpGoJ5O3lEMQ7ypYuLQCknA8Gh7he0y+c5kDnH4tzxkt/emeLbx9a0ABDVNZtVYVibDu v9Nja+WLmy1I4cqBEYWNk3KsWKYnpjs87jpzzh/tlI5KSdJYJ1Ng1UxeQBPRR/70t+xgjhCb9 SFoVd+vMizGvf+t0Sxui72ppSNIk9bQcqAOZ9bS9T0C8u1yrLBPRDxDtyK4/+HIMDL2XDB9Cr pZDM1uud3Au3h6RVKB3YwNv9vE+nflM7FGPxJxbevGS7L5KIT7CjF/ATNbTgR6zDkw0iqd5j3 TPGnbGOI79AxZTiVbLik+TXdmkG9KnNOdpPeRdoc4S42XgP41HUHQR2udgmXdnQQFggV4ea/v lUk3J/g4MHbePEFu/6+LUwlGhETXYooTkmLYxGfGmljxSePF/81nlxuvKiApTNJJWRDKwh6rk c5ctMMQk20fc4I23K5WsDOPNqoofy0e6FYCqG5qIQmdrwU7ckBgmDxnWtCXxaog5srYzxSzG1 4XlXjCp/cNnxQVcYJoy6YNf4igj8ml4YTlsVjKpUDtYw/5gONc3XmgX2ajG4eySqusGKtxrRf Rg4Y9HB5Kszlw727HihUSuDHODl9gdymV01GNtvf8bhltmOYxBwzrqScmWFpwov8zFbX7OtZt 7/NDZ+pDEeg0XguomTXpvXPvN7/MMpDP4i123+8t2uFiJXBrKHnICcjkIogRZ/occObvDrTiq I3KvFFJHxCHpftNNjRddyuMclUmpHaw7amjgr7bSd99hjybkFLJZ8qk9o6exuq6gmjKebDJ Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 27 Nov 2017 18:40:23 +0100 The local variable "fbdev" will be reassigned by a following statement. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/video/fbdev/au1100fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/au1100fb.c b/drivers/video/fbdev/au1100fb.c index 1e5b872f0da6..7c9a672e9811 100644 --- a/drivers/video/fbdev/au1100fb.c +++ b/drivers/video/fbdev/au1100fb.c @@ -410,7 +410,7 @@ static int au1100fb_setup(struct au1100fb_device *fbdev) static int au1100fb_drv_probe(struct platform_device *dev) { - struct au1100fb_device *fbdev = NULL; + struct au1100fb_device *fbdev; struct resource *regs_res; unsigned long page; struct clk *c;