[media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs()
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 26 Sep 2012 08:52:24 +0000 (05:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 2 Oct 2012 17:02:24 +0000 (14:02 -0300)
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>
drivers/media/platform/s5p-fimc/fimc-lite.c

index 5e6c704f108528e508eea0cd5462dc6f3c2bd89a..70bcf39de87994f99dc38ae11c1a2c115d56433d 100644 (file)
@@ -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;