[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0f538063-3819-5ef8-3311-02676cb1042d@users.sourceforge.net>
Date: Sun, 24 Sep 2017 12:33:01 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-media@...r.kernel.org, Hans Verkuil <hverkuil@...all.nl>,
Jan Kara <jack@...e.cz>, Lorenzo Stoakes <lstoakes@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Michal Hocko <mhocko@...e.com>,
Muralidharan Karicheri <mkaricheri@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 6/6] [media] omap_vout: Delete two unnecessary variable
initialisations in omap_vout_probe()
From: Markus Elfring <elfring@...rs.sourceforge.net>
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 <elfring@...rs.sourceforge.net>
---
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;
--
2.14.1
Powered by blists - more mailing lists