diff options
author | Prabhakar Lad <prabhakar.csengg@gmail.com> | 2012-07-20 10:00:57 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 20:34:13 -0300 |
commit | dcf4fc2e2efc605382563d6ab6ba1b6f15fa28a0 (patch) | |
tree | 322d3bb90f729f1fa507b4270857b31f8829c384 /drivers/media | |
parent | 3a495ed77a2f582d860472cdfca815c1dc4a5d02 (diff) | |
download | talos-op-linux-dcf4fc2e2efc605382563d6ab6ba1b6f15fa28a0.tar.gz talos-op-linux-dcf4fc2e2efc605382563d6ab6ba1b6f15fa28a0.zip |
[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.c | 2 |
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); |