Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138045
b: refs/heads/master
c: 522a5f1
h: refs/heads/master
i:
  138043: edb786e
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 81bfb80 commit d8bbfff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 717167e8ae13a61649a1faf867279440fee70b56
refs/heads/master: 522a5f1430bb85ca00928b99caf3892023ad9632
11 changes: 2 additions & 9 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,16 +1894,11 @@ static int bttv_enum_input(struct file *file, void *priv,
{
struct bttv_fh *fh = priv;
struct bttv *btv = fh->btv;
unsigned int n;
int n;

n = i->index;

if (n >= bttv_tvcards[btv->c.type].video_inputs)
if (i->index >= bttv_tvcards[btv->c.type].video_inputs)
return -EINVAL;

memset(i, 0, sizeof(*i));

i->index = n;
i->type = V4L2_INPUT_TYPE_CAMERA;
i->audioset = 1;

Expand Down Expand Up @@ -2952,7 +2947,6 @@ static int bttv_g_tuner(struct file *file, void *priv,
return -EINVAL;

mutex_lock(&btv->lock);
memset(t, 0, sizeof(*t));
t->rxsubchans = V4L2_TUNER_SUB_MONO;
bttv_call_i2c_clients(btv, VIDIOC_G_TUNER, t);
strcpy(t->name, "Television");
Expand Down Expand Up @@ -3495,7 +3489,6 @@ static int radio_g_tuner(struct file *file, void *priv, struct v4l2_tuner *t)
if (0 != t->index)
return -EINVAL;
mutex_lock(&btv->lock);
memset(t, 0, sizeof(*t));
strcpy(t->name, "Radio");
t->type = V4L2_TUNER_RADIO;

Expand Down

0 comments on commit d8bbfff

Please sign in to comment.