wifi: iwlwifi: pcie: refactor RB status size calculation
authorJohannes Berg <johannes.berg@intel.com>
Tue, 20 Jun 2023 10:03:47 +0000 (13:03 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jun 2023 12:02:14 +0000 (14:02 +0200)
commit4742c732624bd2609aeb0acee38c0a126e61ed47
treeb9c8fb50f595baa3efaa0f23d57240394c58741e
parent6c5b9a3296e146cc74b1d006c6a546ea92534ade
wifi: iwlwifi: pcie: refactor RB status size calculation

We have three places doing this check, and even in
slightly different ways (with/without an intermediate).
Refactor that to a new small inline function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230620125813.f3e87ddd5bce.Ifefba753043b68c394590a35bc6914a0f6497fd3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c