]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: remove some unnecessary NULL checks
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 May 2019 12:54:09 +0000 (15:54 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:09:38 +0000 (10:09 +0300)
commit00dfa8512b1d8aadfc37aa11821c497d0e615d20
tree91874b2c47b7c9e46b622de21686894f6ec3b9a9
parent115577b4a94eddea8ff9bf952b25742fe5c65f9a
iwlwifi: remove some unnecessary NULL checks

These pointers are an offset into the "sta" struct.  They're assigned
like this:

const struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap;

They're not the first member of the struct (->supp_rates[] is first) so
they can't be NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c