staging: media: omap4iss: Replace NULL comparison.
Subsystems (2)
PATCH 1/1 staging: media: omap4iss: Replace NULL comparison.
This patch modifies NULL comparison to fix checkpatch.pl warning.
--- drivers/staging/media/omap4iss/iss_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/omap4iss/iss_video.c +2 -2
@@ -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;
Signature · 1 line
2.7.4
Quoted 3 lines · Nachammai Karuppiah
This patch modifies NULL comparison to fix checkpatch.pl warning.
Signed-off-by Nachammai Karuppiah <[email protected]>
Congratulations on getting the first patch in, which looks fine :)
Please join the outreachy-kernel Google groups mailing list.
julia
Quoted 34 lines
--- drivers/staging/media/omap4iss/iss_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/media/omap4iss/iss_video.c +2
-3@@ -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; --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1570014155-41266-1-git-send-email-nachukannan%40gmail.com.
Hello Nachammai,
Thank you for the patch.
Quoted 3 lines · Nachammai Karuppiah
This patch modifies NULL comparison to fix checkpatch.pl warning.
Signed-off-by Nachammai Karuppiah <[email protected]>
and applied to my tree for v5.5.
Quoted 29 lines
--- drivers/staging/media/omap4iss/iss_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/media/omap4iss/iss_video.c +2
-2@@ -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;Signature · 1 line
2.7.4
Signature · 3 lines
Regards, Laurent Pinchart