media: staging: media: omap4iss: Replace NULL comparison.
This patch modifies NULL comparison to fix checkpatch.pl warning. Signed-off-by: Nachammai Karuppiah <nachukannan@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
ac7dabf140
commit
50df3be70a
@ -671,7 +671,7 @@ iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel)
|
||||
return -EINVAL;
|
||||
}
|
||||
subdev = iss_video_remote_subdev(video, &pad);
|
||||
if (subdev == NULL)
|
||||
if (!subdev)
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
@ -726,7 +726,7 @@ iss_video_set_selection(struct file *file, void *fh, struct v4l2_selection *sel)
|
||||
return -EINVAL;
|
||||
}
|
||||
subdev = iss_video_remote_subdev(video, &pad);
|
||||
if (subdev == NULL)
|
||||
if (!subdev)
|
||||
return -EINVAL;
|
||||
|
||||
sdsel.pad = pad;
|
||||
|
Loading…
x
Reference in New Issue
Block a user