[PATCH] git-netdev-all-ieee80211_get_payload-warning-fix
authorAndrew Morton <akpm@osdl.org>
Wed, 9 Nov 2005 19:30:51 +0000 (11:30 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 18 Nov 2005 18:33:31 +0000 (13:33 -0500)
include/net/ieee80211.h: In function `ieee80211_get_payload':
include/net/ieee80211.h:1046: warning: control reaches end of non-void function

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
include/net/ieee80211.h

index b93fd8c1d8847f6488667f60512ee3a9a70bb077..cde2f4f4f501775d968a343d75ec8a2b0859c7e5 100644 (file)
@@ -1042,7 +1042,7 @@ static inline u8 *ieee80211_get_payload(struct ieee80211_hdr *hdr)
        case IEEE80211_4ADDR_LEN:
                return ((struct ieee80211_hdr_4addr *)hdr)->payload;
        }
-
+       return NULL;
 }
 
 static inline int ieee80211_is_ofdm_rate(u8 rate)