All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniela Mormocea <daniela.mormocea@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: Daniela Mormocea <daniela.mormocea@gmail.com>
Subject: [PATCH 1/3] staging: media: davinci_vpfe: Fix comparison to NULL
Date: Thu,  7 Mar 2019 13:41:45 +0200	[thread overview]
Message-ID: <1551958905-9797-1-git-send-email-daniela.mormocea@gmail.com> (raw)
In-Reply-To: <1551958871-9732-1-git-send-email-daniela.mormocea@gmail.com>

Replace comparison to NULL with '!' operator

Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com>
---
 drivers/staging/media/davinci_vpfe/dm365_ipipeif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
index 22fcdbc..277d9af 100644
--- a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
+++ b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
@@ -703,7 +703,7 @@ ipipeif_set_format(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg,
 	struct v4l2_mbus_framefmt *format;
 
 	format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which);
-	if (format == NULL)
+	if (!format)
 		return -EINVAL;
 
 	ipipeif_try_format(ipipeif, cfg, fmt->pad, &fmt->format, fmt->which);
-- 
2.7.4



  reply	other threads:[~2019-03-07 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-07 11:41 [PATCH 0/3] staging: media: davinci_vpfe: Fix various warnings Daniela Mormocea
2019-03-07 11:41 ` Daniela Mormocea [this message]
2019-03-07 11:42 ` [PATCH 2/3] staging: media: davinci_vpfe: Fix multiple line dereference Daniela Mormocea
2019-03-07 11:42 ` [PATCH 3/3] staging: media: davinci_vpfe: Fix alignment issues Daniela Mormocea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1551958905-9797-1-git-send-email-daniela.mormocea@gmail.com \
    --to=daniela.mormocea@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.