mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
staging: media: davinci_vpfe: Fix comparison to NULL
Replace comparison to NULL with '!' operator Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f270392c7e
commit
5921a1383a
1 changed files with 1 additions and 1 deletions
|
@ -703,7 +703,7 @@ ipipeif_set_format(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg,
|
|||
struct v4l2_mbus_framefmt *format;
|
||||
|
||||
format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which);
|
||||
if (format == NULL)
|
||||
if (!format)
|
||||
return -EINVAL;
|
||||
|
||||
ipipeif_try_format(ipipeif, cfg, fmt->pad, &fmt->format, fmt->which);
|
||||
|
|
Loading…
Reference in a new issue