diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-25 14:46:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-25 15:07:10 -0400 |
commit | 66f93178042b6f151552fdb74cbaa2724e59c97c (patch) | |
tree | 6be82b33a5ba9aa7a74243e72e6e3a2dede3e7bb /drivers/media | |
parent | 7063c1456fc0a6366f467f10e7a35178ecc881ad (diff) |
[media] cx25821-video: remove maxw from cx25821_vidioc_try_fmt_vid_cap
After cx25821-video cleanup, this var is not used anymore:
drivers/media/pci/cx25821/cx25821-video.c: In function 'cx25821_vidioc_try_fmt_vid_cap':
drivers/media/pci/cx25821/cx25821-video.c:591:15: warning: variable 'maxw' set but not used [-Wunused-but-set-variable]
as the code now checks the max width as the default case for the
range check.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-video.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-video.c b/drivers/media/pci/cx25821/cx25821-video.c index b194138961df..3ba856a2a9f3 100644 --- a/drivers/media/pci/cx25821/cx25821-video.c +++ b/drivers/media/pci/cx25821/cx25821-video.c | |||
@@ -588,13 +588,12 @@ static int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv, | |||
588 | struct cx25821_dev *dev = chan->dev; | 588 | struct cx25821_dev *dev = chan->dev; |
589 | const struct cx25821_fmt *fmt; | 589 | const struct cx25821_fmt *fmt; |
590 | enum v4l2_field field = f->fmt.pix.field; | 590 | enum v4l2_field field = f->fmt.pix.field; |
591 | unsigned int maxw, maxh; | 591 | unsigned int maxh; |
592 | unsigned w; | 592 | unsigned w; |
593 | 593 | ||
594 | fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); | 594 | fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); |
595 | if (NULL == fmt) | 595 | if (NULL == fmt) |
596 | return -EINVAL; | 596 | return -EINVAL; |
597 | maxw = 720; | ||
598 | maxh = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; | 597 | maxh = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; |
599 | 598 | ||
600 | w = f->fmt.pix.width; | 599 | w = f->fmt.pix.width; |