From patchwork Sun Sep 24 10:33:01 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: 9967881 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 A2C61602CB for ; Sun, 24 Sep 2017 10:33:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 884E728B2B for ; Sun, 24 Sep 2017 10:33:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C68428D7F; Sun, 24 Sep 2017 10:33:16 +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 2375528B2B for ; Sun, 24 Sep 2017 10:33:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751797AbdIXKdO (ORCPT ); Sun, 24 Sep 2017 06:33:14 -0400 Received: from mout.web.de ([212.227.15.14]:63084 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbdIXKdN (ORCPT ); Sun, 24 Sep 2017 06:33:13 -0400 Received: from [192.168.1.2] ([78.48.160.4]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Mbdf3-1ddAHz1phN-00IztU; Sun, 24 Sep 2017 12:33:02 +0200 Subject: [PATCH 6/6] [media] omap_vout: Delete two unnecessary variable initialisations in omap_vout_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Jan Kara , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Muralidharan Karicheri Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <0f538063-3819-5ef8-3311-02676cb1042d@users.sourceforge.net> Date: Sun, 24 Sep 2017 12:33:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:5UB4xeIUttUigkI3XoRnJ9Phe8OUzTnrfmx96x3LzTF0HU9Nk3w jgcPYeeFOce7e/Py7raYne1tV8668X65g/D4en/sNaX48v28aYUZrn0G5ddE6EzmLACuPK0 +juRUXT7JhOekH03LkplEj4iV+os+Zu31k25A+pMV5l9h7tbmoBjw1F++lqkg5TZz2ZO0eh xo2ad0uihHxgbROoKMrOA== X-UI-Out-Filterresults: notjunk:1; V01:K0:d6maeJRXa2g=:FH43JE2QUctwm6kk/fQgUf 3bW71tWepRQtxieKXzT5MfT+wudNmlVaJo0pfQny1gb/vchDwpLNJKxX8BfzWniu2BYUARrGN 4WK6P9h7/6fLG9FpxmBdTHJ9RM3IM3MMfViBKBFEGfbturr3c0xcycUkXUSmBR2PwRO4bD3aB i0oIxtMVD2ji6diB4JASmnrfqu0RKD1exqEcxm9UAm/uEmX3I6sfosSJi25PPC08JZqNGCF+3 4sT3oG4XfXdaCGUL3mPDJx9BtpkUzsJgobPyCbWaUNW6tz6zUHVrzeVWW22pVem+xT4OGqQkG 3JXHIXTWbOx8wO+EsH5b7soCC9XXUabEYqif2xah7hOjlotOyVVkaxzFRq1ZuZHDvdDNpMMs/ 8qgVGrf+wln4TPge8ZmjsXApP+trGNoZezG1Jw8Kb9c7y4KWYaT6PyJgDD9L1Ev8te+bh3V1c 1DcBBSrFf7e1pyxeU+ntf3MVx311g6RvDcvbAadhddoW2/Eyn9hsgWQomGnaIhT9BAFy4KZhl 5i71ouScZCAUR7o3HVz0MWmtO4+FG6zeFYFPZB0gvFoET+FZxjvZjDKR14VEF59nTbFQsqOlq d3NgXTOC/3u97/ncLUDwj7HrI0+rFtLzd/R7UzBO0kKAc9/TWtKOMjTqGzLq5OJP4p29rdE2w eDiEXBIT6PiEp5CMsU968M27k/F5MC/NV07O6w2cYr/zxCpnd6Jy0wJhLNd5Xl0cMloivXFdz r/rM05gC3Js/JEXQHXuilwj9DCxJYLh0C/tefakhWBq/5xOtqxwQx5LXSGxcKDp/ukkGX+ju+ Dr4wMDX16WeNEF8959L4KsWo8gIaNTtGY6sgFtLBJivyD8fXy4= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 24 Sep 2017 11:33:39 +0200 The variables "dssdev" and "vid_dev" will eventually be set to appropriate pointers a bit later. Thus omit the explicit initialisations at the beginning. Signed-off-by: Markus Elfring --- drivers/media/platform/omap/omap_vout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index f446a37064f4..0efcea820007 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c @@ -2075,9 +2075,9 @@ static int __init omap_vout_probe(struct platform_device *pdev) { int ret = 0, i; struct omap_overlay *ovl; - struct omap_dss_device *dssdev = NULL; + struct omap_dss_device *dssdev; struct omap_dss_device *def_display; - struct omap2video_device *vid_dev = NULL; + struct omap2video_device *vid_dev; if (omapdss_is_initialized() == false) return -EPROBE_DEFER;