From: Wei Yongjun Date: Tue, 30 Oct 2012 12:49:38 +0000 (-0300) Subject: [media] davinci: vpif_display: fix return type check for v4l2_subdev_call() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~21^2^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63af4af59238fc17e70d0b0046362c804d4fc567;p=pandora-kernel.git [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 [prabhakar.lad@ti.com: reword commit messaage] Signed-off-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed