From f7d61b320ae3044306415d821e734d9b79477600 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 13 Jul 2013 16:29:52 +0200 Subject: proto_80211_mac_hdr: fix sparse warning This patch fixes the followingf sparse warning: proto_80211_mac_hdr.c:3389:24: warning: Using plain integer as NULL pointer Signed-off-by: Daniel Borkmann --- proto_80211_mac_hdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto_80211_mac_hdr.c b/proto_80211_mac_hdr.c index cc5c26e..33cf8a9 100644 --- a/proto_80211_mac_hdr.c +++ b/proto_80211_mac_hdr.c @@ -3385,8 +3385,8 @@ static const char *mgt_sub(u8 subtype, struct pkt_buff *pkt, const char *dst, *src, *bssid; mgmt = (struct ieee80211_mgmt *) pkt_pull(pkt, sizeof(*mgmt)); - if (mgmt == NULL) - return 0; + if (!mgmt) + return NULL; dst = lookup_vendor((mgmt->da[0] << 16) | (mgmt->da[1] << 8) | -- cgit v1.2.3-54-g00ecf