netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: [PATCH 8/8] netfilter: nfnetlink_osf: fix using plain integer as NULL warning
Date: Fri, 10 Aug 2018 13:16:22 +0200	[thread overview]
Message-ID: <20180810111622.3981-9-pablo@netfilter.org> (raw)
In-Reply-To: <20180810111622.3981-1-pablo@netfilter.org>

From: Wei Yongjun <weiyongjun1@huawei.com>

Fixes the following sparse warning:

net/netfilter/nfnetlink_osf.c:274:24: warning:
 Using plain integer as NULL pointer

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 net/netfilter/nfnetlink_osf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nfnetlink_osf.c b/net/netfilter/nfnetlink_osf.c
index f9dba62c450f..00db27dfd2ff 100644
--- a/net/netfilter/nfnetlink_osf.c
+++ b/net/netfilter/nfnetlink_osf.c
@@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb,
 
 	tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts);
 	if (!tcp)
-		return false;
+		return NULL;
 
 	list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) {
 		f = &kf->finger;
-- 
2.11.0

  parent reply	other threads:[~2018-08-10 11:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-10 11:16 [PATCH 0/8] Netfilter updates for net-next Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 1/8] netfilter: nft_osf: use NFT_OSF_MAXGENRELEN instead of IFNAMSIZ Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 2/8] netfilter: cttimeout: move ctnl_untimeout to nf_conntrack Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 3/8] netfilter: cttimeout: decouple timeout policy from nfnetlink_cttimeout object Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 4/8] netfilter: remove ifdef around cttimeout in struct nf_conntrack_l4proto Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 5/8] netfilter: nft_ct: add ct timeout support Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 6/8] netfilter: nft_ct: enable conntrack for helpers Pablo Neira Ayuso
2018-08-10 11:16 ` [PATCH 7/8] netfilter: nfnetlink_osf: add missing enum in nfnetlink_osf uapi header Pablo Neira Ayuso
2018-08-10 11:16 ` Pablo Neira Ayuso [this message]
2018-08-10 17:43 ` [PATCH 0/8] Netfilter updates for net-next David Miller

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=20180810111622.3981-9-pablo@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).