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)
commit68025d5f9bfe87cdfee31ca933edbfdbbd8f616a
tree95ffebea0b7dbf726f2d27e6fa88faad5b65142b
parent17b809c9b22e34e17b1de6ff7c913127b7a249db
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