Skip to content

Commit

Permalink
[media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs()
Browse files Browse the repository at this point in the history
Fixes a typo in a conditional evaluation.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Oct 2, 2012
1 parent 970e85f commit f68247f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/s5p-fimc/fimc-lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ static int fimc_lite_reqbufs(struct file *file, void *priv,

reqbufs->count = max_t(u32, FLITE_REQ_BUFS_MIN, reqbufs->count);
ret = vb2_reqbufs(&fimc->vb_queue, reqbufs);
if (!ret < 0)
if (!ret)
fimc->reqbufs_count = reqbufs->count;

return ret;
Expand Down

0 comments on commit f68247f

Please sign in to comment.