diff options
author | Prabhakar Lad <prabhakar.csengg@gmail.com> | 2012-07-20 09:00:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 19:34:13 -0400 |
commit | dcf4fc2e2efc605382563d6ab6ba1b6f15fa28a0 (patch) | |
tree | 322d3bb90f729f1fa507b4270857b31f8829c384 | |
parent | 3a495ed77a2f582d860472cdfca815c1dc4a5d02 (diff) |
[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>
-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, | |||
1083 | } | 1083 | } |
1084 | 1084 | ||
1085 | /* Set the given standard in the encoder */ | 1085 | /* Set the given standard in the encoder */ |
1086 | if (NULL != vpbe_dev->ops.s_dv_preset) | 1086 | if (!vpbe_dev->ops.s_dv_preset) |
1087 | return -EINVAL; | 1087 | return -EINVAL; |
1088 | 1088 | ||
1089 | ret = vpbe_dev->ops.s_dv_preset(vpbe_dev, preset); | 1089 | ret = vpbe_dev->ops.s_dv_preset(vpbe_dev, preset); |