All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] bdisp: remove unused var
@ 2015-06-10 15:34 Mauro Carvalho Chehab
  2015-06-11  8:29 ` Fabien DESSENNE
  0 siblings, 1 reply; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2015-06-10 15:34 UTC (permalink / raw)
  To: Linux Media Mailing List; +Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab

Fix the following warning:

drivers/media/platform/sti/bdisp/bdisp-v4l2.c: In function 'bdisp_register_device':
drivers/media/platform/sti/bdisp/bdisp-v4l2.c:1024:26: warning: variable 'pdev' set but not used [-Wunused-but-set-variable]
  struct platform_device *pdev;

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
---
 drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c
index 9a8405cd5216..9e782ebe18da 100644
--- a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c
+++ b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c
@@ -1021,14 +1021,11 @@ static const struct v4l2_ioctl_ops bdisp_ioctl_ops = {
 
 static int bdisp_register_device(struct bdisp_dev *bdisp)
 {
-	struct platform_device *pdev;
 	int ret;
 
 	if (!bdisp)
 		return -ENODEV;
 
-	pdev = bdisp->pdev;
-
 	bdisp->vdev.fops        = &bdisp_fops;
 	bdisp->vdev.ioctl_ops   = &bdisp_ioctl_ops;
 	bdisp->vdev.release     = video_device_release_empty;
-- 
2.4.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-11  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10 15:34 [PATCH] [media] bdisp: remove unused var Mauro Carvalho Chehab
2015-06-11  8:29 ` Fabien DESSENNE

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.