Skip to content

Commit

Permalink
[media] bdisp: remove unused var
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 10, 2015
1 parent 1a8b18a commit baa1fb5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/platform/sti/bdisp/bdisp-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit baa1fb5

Please sign in to comment.