iwlwifi: make iwl_txq_dyn_alloc_dma() return the txq
authorJohannes Berg <johannes.berg@intel.com>
Thu, 10 Feb 2022 16:22:24 +0000 (18:22 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Feb 2022 08:40:54 +0000 (10:40 +0200)
commitba3d4acd96b9353d006eb1e2846fcfe92ea6d97c
treea4a1a2b8797a3c9d9a7a0ccb43fca6dd101621dd
parent3009c797c4b3840495e8f48d8d07f48d2ddfed80
iwlwifi: make iwl_txq_dyn_alloc_dma() return the txq

Use the ERR_PTR() machinery to return the queue or an
error, instead of having a separate out parameter.

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.20220210181930.1f0c5d72fb89.Iefca56d535558b7a8d23204fd16129c17b6704b6@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/queue/tx.c