]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: davinci_vpfe: Change to !format
authorIrenge Jules Bashizi <jbi.octave@gmail.com>
Thu, 8 Nov 2018 21:12:05 +0000 (21:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 12:29:41 +0000 (04:29 -0800)
Change from if(format==NULL) to if(!format) to remove checkpatch warning

Signed-off-by: Irenge Jules Bashizi <jbi.octave@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/dm365_ipipe.c

index 81b369b28a47cf69a07877bf604db86bc4a0590f..ccb59fd653c941312afcdc71d5c951fbd44da205 100644 (file)
@@ -1466,7 +1466,7 @@ ipipe_set_format(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg,
        struct v4l2_mbus_framefmt *format;
 
        format = __ipipe_get_format(ipipe, cfg, fmt->pad, fmt->which);
-       if (format == NULL)
+       if (!format)
                return -EINVAL;
 
        ipipe_try_format(ipipe, cfg, fmt->pad, &fmt->format, fmt->which);