iwlwifi: mvm: fix harmless smatch / coccinelle warnings
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 22 Dec 2013 08:55:47 +0000 (10:55 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 31 Dec 2013 17:03:46 +0000 (19:03 +0200)
commit9e898f1bd4415699e826c78893a9622a11bd01a6
tree9fd0887b9b1de4f13b3c21b306140ae82a8e7843
parentaaa4e74110cd6db4c5e91949d1af42cba44a377f
iwlwifi: mvm: fix harmless smatch / coccinelle warnings

Don't check if mvm->fw->cs is NULL since it can't be.
cs is an array member of iwl_fw, it can't be NULL.

Use memset(ptr, 0, sizeof(*ptr)); instead of
memset(ptr, 0, sizeof(struct ptr_type));

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/rs.c