History

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

Wei Yongjun committed 8 years ago

Commit e7ea2a51 parent 212dfd91 file · +1 −1Browse files

Unified · Split

net/netfilter/nfnetlink_osf.c+1−1
@@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb, · 270 unmodified lines
271271
272272 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts);
273273 if (!tcp)
274− return false;
274+ return NULL;
275275
276276 list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) {
277277 f = &kf->finger;