OSDN Git Service

ath11k: Add missing qmi_txn_cancel()
authorAnilkumar Kolli <akolli@codeaurora.org>
Tue, 2 Nov 2021 12:52:38 +0000 (18:22 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 17 Nov 2021 07:29:01 +0000 (09:29 +0200)
commit1ad6e4b00f29d017b196dda7ab96d1cfcbabd7d2
tree8511d026b566772dac30f40ca24862a1b6ecda67
parentbd77f6b1d7104cf6451399a7c67d08afecb9a7c7
ath11k: Add missing qmi_txn_cancel()

Currently many functions do not follow this guidance when
qmi_send_request() fails, therefore add missing
qmi_txn_cancel() in the qmi_send_request() error path.

Also remove initialization on 'struct qmi_txn'
since qmi_tx_init() performs all necessary initialization.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01838-QCAHKSWPL_SILICONZ-1

Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1635857558-21733-1-git-send-email-akolli@codeaurora.org
drivers/net/wireless/ath/ath11k/qmi.c