staging: media: davinci_vpfe: Fix comparison to NULL
authorDaniela Mormocea <daniela.mormocea@gmail.com>
Thu, 7 Mar 2019 11:41:45 +0000 (13:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:21 +0000 (07:05 +0100)
Replace comparison to NULL with '!' operator

Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/dm365_ipipeif.c

index 22fcdbcde96b6959aab78ca6f6ebcf30f0e13105..277d9afcf9b21b4d6fee8a492b1c6d39bf9710c4 100644 (file)
@@ -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);