]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dbg: refactor dump code to improve readability
authorSara Sharon <sara.sharon@intel.com>
Mon, 11 Jun 2018 09:43:26 +0000 (12:43 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 6 Oct 2018 07:25:42 +0000 (10:25 +0300)
commit4ae2e769f0f0a6ff8c032f09c050c234d33c9b67
tree95ffebea0b7dbf726f2d27e6fa88faad5b65142b
parent451de77077e81c7921031a8e09fc876bfe4cecfe
iwlwifi: dbg: refactor dump code to improve readability

Add a macro to replace all the conditions checking for valid dump
length.  In addition, move the fifo len calculation to a helper
function.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c