summaryrefslogtreecommitdiff
path: root/drivers/staging/media/omap4iss/iss_csi2.c
diff options
context:
space:
mode:
authorAmarjargal Gundjalam <amarjargal.gundjalam@gmail.com>2015-10-26 16:09:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-27 10:53:12 +0300
commit9058fc9262057c8f6c17b122b69217cdb4fc4643 (patch)
treecb8f7174575b1d6e16446ed573539573b76473b9 /drivers/staging/media/omap4iss/iss_csi2.c
parenta09ad8c7a3285b99b7d976deadbd62ed1ac4c90e (diff)
downloadlinux-9058fc9262057c8f6c17b122b69217cdb4fc4643.tar.xz
staging: media: omap4iss: Fixes NULL comparison
This patch fixes the checkpatch issue: CHECK: Comparison to NULL could be written Signed-off-by: Amarjargal Gundjalam <amarjargal.gundjalam@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/omap4iss/iss_csi2.c')
-rw-r--r--drivers/staging/media/omap4iss/iss_csi2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/media/omap4iss/iss_csi2.c b/drivers/staging/media/omap4iss/iss_csi2.c
index bc83f8246101..c6e6d47ac57f 100644
--- a/drivers/staging/media/omap4iss/iss_csi2.c
+++ b/drivers/staging/media/omap4iss/iss_csi2.c
@@ -658,7 +658,7 @@ static void csi2_isr_buffer(struct iss_csi2_device *csi2)
* Let video queue operation restart engine if there is an underrun
* condition.
*/
- if (buffer == NULL)
+ if (!buffer)
return;
csi2_set_outaddr(csi2, buffer->iss_addr);
@@ -979,7 +979,7 @@ static int csi2_get_format(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *format;
format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which);
- if (format == NULL)
+ if (!format)
return -EINVAL;
fmt->format = *format;
@@ -1001,7 +1001,7 @@ static int csi2_set_format(struct v4l2_subdev *sd,
struct v4l2_mbus_framefmt *format;
format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which);
- if (format == NULL)
+ if (!format)
return -EINVAL;
csi2_try_format(csi2, cfg, fmt->pad, &fmt->format, fmt->which);