Skip to content

Commit

Permalink
media: staging: media: omap4iss: Replace NULL comparison.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nachammai Karuppiah authored and Mauro Carvalho Chehab committed Oct 16, 2019
1 parent ac7dabf commit 50df3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/media/omap4iss/iss_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 50df3be

Please sign in to comment.