Fixes the following sparse warning: net/netfilter/nfnetlink_osf.c:274:24: warning: Using plain integer as NULL pointer
Unified · Split
| @@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb, · 270 unmodified lines | ||
| 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; |