Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343851
b: refs/heads/master
c: 1ab9058
h: refs/heads/master
i:
  343849: 5488ad9
  343847: 1ef9f16
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent a18f3c4 commit ba449a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 2869a318ce313f97f987935dd225d88a9b30b2fc
refs/heads/master: 1ab90587029b821ed47db9df8d79a5ebe49a02a8
4 changes: 2 additions & 2 deletions trunk/drivers/media/usb/tlg2300/pd-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *in)
{
struct front_face *front = fh;

if (in->index < 0 || in->index >= POSEIDON_INPUTS)
if (in->index >= POSEIDON_INPUTS)
return -EINVAL;
strcpy(in->name, pd_inputs[in->index].name);
in->type = V4L2_INPUT_TYPE_TUNER;
Expand Down Expand Up @@ -923,7 +923,7 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int i)
struct poseidon *pd = front->pd;
s32 ret, cmd_status;

if (i < 0 || i >= POSEIDON_INPUTS)
if (i >= POSEIDON_INPUTS)
return -EINVAL;
ret = send_set_req(pd, SGNL_SRC_SEL,
pd_inputs[i].tlg_src, &cmd_status);
Expand Down

0 comments on commit ba449a8

Please sign in to comment.