From: Sachin Kamat Date: Wed, 26 Sep 2012 08:52:24 +0000 (-0300) Subject: [media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f68247fcdc361bc7db2ecb269451247235c21079;p=openwrt%2Fstaging%2Fblogic.git [media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs() Fixes a typo in a conditional evaluation. Signed-off-by: Sachin Kamat Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c index 5e6c704f1085..70bcf39de879 100644 --- a/drivers/media/platform/s5p-fimc/fimc-lite.c +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c @@ -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;