]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't check if key is NULL in ieee80211_key_link()
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 30 Aug 2019 11:24:50 +0000 (14:24 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 11 Sep 2019 07:33:28 +0000 (09:33 +0200)
commit7a15864e710e2d5460ac4af0510d31364495647e
tree0b1fa363fe0b2111250caf7000a768bbb518d7d4
parentc260f2b5984738191aa243562708a988ccabfc2c
mac80211: don't check if key is NULL in ieee80211_key_link()

We already assume that key is not NULL and dereference it in a few
other places before we check whether it is NULL, so the check is
unnecessary.  Remove it.

Fixes: 9c84f9ecdea9 ("mac80211: IEEE 802.11 Extended Key ID support")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20190830112451.21655-8-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c