]> 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)
commit3a6019dd68af4763907a519b25ab616068a5a4f5
tree5d3d1be28e908b9f8bec59e6458488dc27bda533
parent1669d53f166ec0c5a508bb0c6788923b482b38be
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