diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-29 15:01:28 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-04 15:39:34 +0200 |
commit | dd1c90351028d1b4bd7c1981ec448469b24d782a (patch) | |
tree | 50519e292d8fa840c716b851cb580b110dd9044e /isp | |
parent | ea5563000447f0cef5688a35feb0071ec5d1ea58 (diff) |
omap3isp: Return v4l2_queue_buffer() return value directly on error
v4l2_queue_buffer() already returns -errno, don't compute that again but
return the function's return value directly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp')
-rw-r--r-- | isp/omap3isp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isp/omap3isp.c b/isp/omap3isp.c index d6dc926..99eca7c 100644 --- a/isp/omap3isp.c +++ b/isp/omap3isp.c @@ -923,7 +923,7 @@ int omap3_isp_viewfinder_start(struct omap3_isp_device *isp) ret = v4l2_queue_buffer(isp->viewfinder.output->video, &buffer); if (ret < 0) { printf("error: unable to queue buffer %u (%d)\n", i, ret); - return -errno; + return ret; } isp->viewfinder.output->queued++; @@ -1051,7 +1051,7 @@ int omap3_isp_snapshot_setup(struct omap3_isp_device *isp, ret = v4l2_queue_buffer(isp->snapshot.output->video, &buffer); if (ret < 0) { printf("error: unable to queue buffer %u\n", i); - return -errno; + return ret; } } |