Skip to content

Commit

Permalink
[media] em28xx: Fix return value for s_ctrl
Browse files Browse the repository at this point in the history
On some cases, driver returns 1. This should be OK, but qv4l2 is too
strict about return values.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 0e09a3c commit 78e5156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
rc = em28xx_audio_analog_set(dev);
}
}
return rc;
return (rc < 0) ? rc : 0;
}

static int vidioc_g_tuner(struct file *file, void *priv,
Expand Down

0 comments on commit 78e5156

Please sign in to comment.