Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1738135

[PATCH 5/6] [media] omap_vout: Delete an unnecessary variable initialisation in omap_vout_open()

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject [PATCH 5/6] [media] omap_vout: Delete an unnecessary variable initialisation in omap_vout_open()
Date 2017-09-24 12:40 +0200
Message-ID <utcul-7yW-7@gated-at.bofh.it> (permalink)
References <utckF-7vc-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 24 Sep 2017 11:20:11 +0200

The local variable "vout" is reassigned by a statement at the beginning.
Thus omit the explicit initialisation.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/media/platform/omap/omap_vout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c
index 71b77426271e..f446a37064f4 100644
--- a/drivers/media/platform/omap/omap_vout.c
+++ b/drivers/media/platform/omap/omap_vout.c
@@ -1001,7 +1001,7 @@ static int omap_vout_release(struct file *file)
 static int omap_vout_open(struct file *file)
 {
 	struct videobuf_queue *q;
-	struct omap_vout_device *vout = NULL;
+	struct omap_vout_device *vout;
 
 	vout = video_drvdata(file);
 	if (!vout)
-- 
2.14.1

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] [media] omap_vout: Adjustments for three function  implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 12:30 +0200
  [PATCH 1/6] [media] omap_vout: Delete an error message for a failed  memory allocation in omap_vout_create_video_devices() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 12:30 +0200
    Re: [PATCH 1/6] [media] omap_vout: Delete an error message for a  failed memory allocation in omap_vout_create_video_devices() Joe Perches <joe@perches.com> - 2017-09-24 12:40 +0200
  [PATCH 3/6] [media] omap_vout: Adjust a null pointer check in two  functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 12:30 +0200
  [PATCH 2/6] [media] omap_vout: Improve a size determination in two  functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 12:30 +0200
  [PATCH 6/6] [media] omap_vout: Delete two unnecessary variable  initialisations in omap_vout_probe() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 12:40 +0200
  [PATCH 5/6] [media] omap_vout: Delete an unnecessary variable  initialisation in omap_vout_open() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-24 12:40 +0200

csiph-web