[media] davinci: vpif_display: fix return type check for v4l2_subdev_call()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 30 Oct 2012 12:49:38 +0000 (09:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Nov 2012 14:20:13 +0000 (12:20 -0200)
commit63af4af59238fc17e70d0b0046362c804d4fc567
tree38ca7089f302c0bf6128771f399cf093a26d2c80
parente070f1b47ee9f3591f93a205a3d8b0b06bb0afb5
[media] davinci: vpif_display: 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 messaage]
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpif_display.c