Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161427
b: refs/heads/master
c: de81c3c
h: refs/heads/master
i:
  161425: 485a6ff
  161423: 7b3acac
v: v3
  • Loading branch information
Roel Kluin authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent 6f9bd83 commit b443a17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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: ce27cd3bf989fe7187526cb120c69bf33b0b68d0
refs/heads/master: de81c3c3f5db3ca35548c54024df50be18d64830
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/ttpci/av7110_v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int input)
if (!av7110->analog_tuner_flags)
return 0;

if (input < 0 || input >= 4)
if (input >= 4)
return -EINVAL;

av7110->current_input = input;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx18/cx18-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ int cx18_s_input(struct file *file, void *fh, unsigned int inp)
if (ret)
return ret;

if (inp < 0 || inp >= cx->nof_inputs)
if (inp >= cx->nof_inputs)
return -EINVAL;

if (inp == cx->active_input) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ static int saa7134_s_input(struct file *file, void *priv, unsigned int i)
if (0 != err)
return err;

if (i < 0 || i >= SAA7134_INPUT_MAX)
if (i >= SAA7134_INPUT_MAX)
return -EINVAL;
if (NULL == card_in(dev, i).name)
return -EINVAL;
Expand Down

0 comments on commit b443a17

Please sign in to comment.