From: Steve deRosier Date: Wed, 18 Nov 2015 22:51:28 +0000 (-0800) Subject: ath6kl: Don't print error message when recv is canceled X-Git-Tag: v5.15~13995^2~401^2~35^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79fd1709b64991c86e5ffef0689b4635874e6504;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/htc_mbox.c b/drivers/net/wireless/ath/ath6kl/htc_mbox.c index fffb65b..65c31da 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_mbox.c +++ b/drivers/net/wireless/ath/ath6kl/htc_mbox.c @@ -2222,8 +2222,9 @@ int ath6kl_htc_rxmsg_pending_handler(struct htc_target *target, } if (status) { - ath6kl_err("failed to get pending recv messages: %d\n", - status); + if (status != -ECANCELED) + ath6kl_err("failed to get pending recv messages: %d\n", + status); /* cleanup any packets in sync completion queue */ list_for_each_entry_safe(packets, tmp_pkt, &comp_pktq, list) {