forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/wireless/ath/ath6kl/htc_pipe.c
....@@ -898,9 +898,6 @@
898898 break;
899899 }
900900
901
- if (status != 0)
902
- break;
903
-
904901 /* advance buffer past this record for next time around */
905902 buffer += record->len;
906903 len -= record->len;
....@@ -963,8 +960,8 @@
963960 * Thus the possibility of ar->htc_target being NULL
964961 * via ath6kl_recv_complete -> ath6kl_usb_io_comp_work.
965962 */
966
- if (WARN_ON_ONCE(!target)) {
967
- ath6kl_err("Target not yet initialized\n");
963
+ if (!target) {
964
+ ath6kl_dbg(ATH6KL_DBG_HTC, "Target not yet initialized\n");
968965 status = -EINVAL;
969966 goto free_skb;
970967 }