[media] media: davinci: vpbe: return error code on error in vpbe_display_g_crop()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Dec 2012 01:50:47 +0000 (22:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 16:22:30 +0000 (14:22 -0200)
commite276f03b4f29fcc54d8e658d5de8dd953e4aef1e
treed341ec9fc1a25fafabd77845f3a6d32de0b12805
parent4d22f1086d24f61e271e1e84c0c27db4ad495e8f
[media] media: davinci: vpbe: return error code on error in vpbe_display_g_crop()

We have assigned error code to 'ret' if crop->type is not
V4L2_BUF_TYPE_VIDEO_OUTPUT, but never use it.
We'd better return the error code on this error.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Prabhakar Lad <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpbe_display.c