summaryrefslogtreecommitdiff
path: root/proto_80211_mac_hdr.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:29:52 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:29:52 +0200
commitf7d61b320ae3044306415d821e734d9b79477600 (patch)
tree94a7a1ca1c1fba5a274f1c0319aa2da93f5979b3 /proto_80211_mac_hdr.c
parent05e3f4bf348a47b058ec005c1d350ef46305d1a2 (diff)
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 <dborkman@redhat.com>
Diffstat (limited to 'proto_80211_mac_hdr.c')
-rw-r--r--proto_80211_mac_hdr.c4
1 files 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) |