OSDN Git Service

mac80211: remove superfluous NULL check
authorJohannes Berg <johannes.berg@intel.com>
Sat, 15 Dec 2018 09:03:09 +0000 (11:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Dec 2018 12:17:50 +0000 (13:17 +0100)
commit233e98dc9c3009943aa34d58925d94ac9330e17b
tree69d2450e6803ba1a652f1d63ff220e36fe1765dd
parentdd665d23c1e94ad81d8720e90666030c5714a158
mac80211: remove superfluous NULL check

At the place where this code lives now, the skb can never be
NULL, so we can remove the pointless NULL check.

It seems to exist because this code was moved around a few times
and originally came from a place where it could in fact be NULL.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c