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)
commitbd9c519785926c72ff66e1b7218a622ace1da0eb
tree91874b2c47b7c9e46b622de21686894f6ec3b9a9
parente344896723562d1288ba76cc8f232718b9a435f7
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