OSDN Git Service

iwlwifi: pcie: clean up some rx code
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Dec 2020 21:16:39 +0000 (23:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Dec 2020 22:16:01 +0000 (00:16 +0200)
commite4475583b5c49d5a90dcff9ae201018cd98c7d84
treeaf32d78a0d38db431144d8ab192cca40d7aa2531
parent8e99ea8d09a159d46069faef10721a3f8436d2fd
iwlwifi: pcie: clean up some rx code

We don't need the sequence/index/cmd_index unless we're doing
reclaim, they're not even valid in the other cases. Move the
variables and their assignments into the right if statement
and combine the two if statements into a single one as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231352.6207fdcc91a9.Ia71e766ead7560262f4bc6ad3da6f1117c498cd6@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c