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: 10077729 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 BE952602BC for ; Mon, 27 Nov 2017 18:02:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6360289CC for ; Mon, 27 Nov 2017 18:02:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9E3728AC3; Mon, 27 Nov 2017 18:02:08 +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 66269289CC for ; Mon, 27 Nov 2017 18:02:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752938AbdK0SBz (ORCPT ); Mon, 27 Nov 2017 13:01:55 -0500 Received: from mout.web.de ([217.72.192.78]:60338 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbdK0SBy (ORCPT ); Mon, 27 Nov 2017 13:01:54 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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;