staging: davinci_vpfe: Change to !format
Subsystems (2)
PATCH 1/1 staging: davinci_vpfe: Change to !format
Change from if(format==NULL) to if(!format) to remove checkpatch warning
Signed-off-by Irenge Jules Bashizi <[email protected]>
--- drivers/staging/media/davinci_vpfe/dm365_ipipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/davinci_vpfe/dm365_ipipe.c +1 -1
@@ -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);
Signature · 1 line
2.17.2