Commit e7ea2a52ffaf60a211edc0df97dcf194d1257714

Authored by Wei Yongjun
Committed by Pablo Neira Ayuso
1 parent 212dfd909e

netfilter: nfnetlink_osf: fix using plain integer as NULL warning

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/netfilter/nfnetlink_osf.c
... ... @@ -271,7 +271,7 @@
271 271  
272 272 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts);
273 273 if (!tcp)
274   - return false;
  274 + return NULL;
275 275  
276 276 list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) {
277 277 f = &kf->finger;