diff options
author | Mike Isely <isely@pobox.com> | 2007-01-21 22:44:03 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-21 22:44:03 -0600 |
commit | 6fb73d771159f2d1c9936d769ee42b3a7be3086a (patch) | |
tree | 17baae8aaa5a5558c17fec06356cda6c89de32c1 /linux/drivers | |
parent | a4afacc02da0c558bd2e455a63d16a9c4301e862 (diff) | |
download | mediapointer-dvb-s2-6fb73d771159f2d1c9936d769ee42b3a7be3086a.tar.gz mediapointer-dvb-s2-6fb73d771159f2d1c9936d769ee42b3a7be3086a.tar.bz2 |
pvrusb2: Add comment for why G_TUNER only looks at index zero
From: Mike Isely <isely@pobox.com>
Mauro and I had fixed this bug at the same time. It's a silly
one-liner, but my version of the fix included a comment explaining why
it was needed. So I'm putting up this version of the fix.
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 621a0dd31..ac7ead462 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c @@ -367,8 +367,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, { struct v4l2_tuner *vt = (struct v4l2_tuner *)arg; - if (vt->index != 0) - break; + if (vt->index != 0) break; /* Only answer for the 1st tuner */ pvr2_hdw_execute_tuner_poll(hdw); ret = pvr2_hdw_get_tuner_status(hdw,vt); |