]> 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)
commit54da4bcc08cbc76885ebbec75c0a3597829150cf
tree95ffebea0b7dbf726f2d27e6fa88faad5b65142b
parent0c6d2ea9d1cccf71637aea508e3400066d394bd2
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