]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: avoid variable shadowing in TFD helpers
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Sep 2016 07:34:46 +0000 (09:34 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Sep 2016 20:23:49 +0000 (23:23 +0300)
commitbc9998b3f30014027f24a7023a5e3c4500ba1515
tree5d3d1be28e908b9f8bec59e6458488dc27bda533
parent10506951072d59d81a6f12d04984aeb60722448d
iwlwifi: pcie: avoid variable shadowing in TFD helpers

The various TFD/TB helpers have two code paths depending on the
type of TFD supported, with variable shadowing due to the new if
branches. Move the fall-through code into else branches to avoid
variable shadowing. While doing so, rename some of the variables
and do some other cleanups (like removing void * casts of void *
pointers.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/tx.c