ath6kl: Don't print error message when recv is canceled

An error message ath6kl_htc_rxmsg_pending_handler isn't appropate for when
the error is ECANCELED. This could be the result of a perfectly appropriate
RX cancel due to shutdown or suspend. This allows the right cleanup to
continue, but without an alarming error message in this particular case.

Signed-off-by: Steve deRosier <steve.derosier@lairdtech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
Steve deRosier 2015-11-18 14:51:28 -08:00 committed by Kalle Valo
parent 6fa658fd5a
commit 79fd1709b6

View file

@ -2222,8 +2222,9 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target,
} }
if (status) { if (status) {
ath6kl_err("failed to get pending recv messages: %d\n", if (status != -ECANCELED)
status); ath6kl_err("failed to get pending recv messages: %d\n",
status);
/* cleanup any packets in sync completion queue */ /* cleanup any packets in sync completion queue */
list_for_each_entry_safe(packets, tmp_pkt, &comp_pktq, list) { list_for_each_entry_safe(packets, tmp_pkt, &comp_pktq, list) {