Skip to content
Commit 60e83deb authored by Eytan Lifshitz's avatar Eytan Lifshitz Committed by Johannes Berg
Browse files

mac80211: remove useless NULL checks



sdata can't be NULL, and key being NULL is really not possible
unless the code is modified.

The sdata check made a static analyze (klocwork) unhappy because
we would get pointer to local (sdata->local) and only then check
if sdata is non-NULL.

Signed-off-by: default avatarEytan Lifshitz <eytan.lifshitz@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
[remove !key check as well]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent aeb136c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment