summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-10 12:30:52 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-10 12:30:52 -0300
commitbaa1fb504c5b89d1b04e5b4d1b8658f41bb29477 (patch)
treec1b65ae1af6128db67dbe72d908119b204ea0fee /drivers/media
parent1a8b18afa13f2772b1ae79de3831f0b81b4a0903 (diff)
downloadlinux-baa1fb504c5b89d1b04e5b4d1b8658f41bb29477.tar.bz2
[media] bdisp: remove unused var
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/sti/bdisp/bdisp-v4l2.c3
1 files changed, 0 insertions, 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;