summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorPrabhakar Lad <prabhakar.csengg@gmail.com>2012-07-20 17:00:57 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-31 03:34:13 +0400
commitdcf4fc2e2efc605382563d6ab6ba1b6f15fa28a0 (patch)
tree322d3bb90f729f1fa507b4270857b31f8829c384 /drivers/media
parent3a495ed77a2f582d860472cdfca815c1dc4a5d02 (diff)
downloadlinux-dcf4fc2e2efc605382563d6ab6ba1b6f15fa28a0.tar.xz
[media] davinci: vpbe: fix check for s_dv_preset function pointer
fix check for s_dv_preset function pointer to be NULL. return -EINVAL if function pointer is NULL. Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com> Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/davinci/vpbe_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/davinci/vpbe_display.c b/drivers/media/video/davinci/vpbe_display.c
index e106b72810a9..f78ccc00bc4b 100644
--- a/drivers/media/video/davinci/vpbe_display.c
+++ b/drivers/media/video/davinci/vpbe_display.c
@@ -1083,7 +1083,7 @@ vpbe_display_s_dv_preset(struct file *file, void *priv,
}
/* Set the given standard in the encoder */
- if (NULL != vpbe_dev->ops.s_dv_preset)
+ if (!vpbe_dev->ops.s_dv_preset)
return -EINVAL;
ret = vpbe_dev->ops.s_dv_preset(vpbe_dev, preset);