mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-19 05:24:11 +00:00
[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>
This commit is contained in:
parent
3a495ed77a
commit
dcf4fc2e2e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue