]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
[media] davinci: vpif_capture: fix return type check for v4l2_subdev_call()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 30 Oct 2012 12:45:00 +0000 (09:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Nov 2012 14:17:02 +0000 (12:17 -0200)
commite070f1b47ee9f3591f93a205a3d8b0b06bb0afb5
treee16bf3667dd47ba80e78ec229e38e63ef3842469
parent864a121274c70fe9a1767db28bd86f5e5d0016a1
[media] davinci: vpif_capture: fix return type check for v4l2_subdev_call()

The v4l2_subdev_call() call returns -ENODEV when subdev is
null and -ENOIOCTLCMD wnen no icotl is present.
This patch fixes the return type check for v4l2_subdev_call().
The pattern E == C1 && E == C2 is always false. This patch
fix this according to the assumption that && should be ||.
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
[prabhakar.lad@ti.com: reword commit message]
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpif_capture.c