소스 검색

qcacmn: Mask failures in hif_post_recv_buffers

Mask failures in hif_post_recv_buffers as the oom_allocation_work
provides a recovery mechanism.

Change-Id: Ib495b96f9d72b25c732c3b85f982db5dc20adca7
CRs-Fixed: 2030393
Houston Hoffman 8 년 전
부모
커밋
60ff932b38
1개의 변경된 파일3개의 추가작업 그리고 8개의 파일을 삭제
  1. 3 8
      hif/src/ce/ce_main.c

+ 3 - 8
hif/src/ce/ce_main.c

@@ -1874,9 +1874,8 @@ static int hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info)
 
 /*
  * Try to post all desired receive buffers for all pipes.
- * Returns 0 if all desired buffers are posted,
- * non-zero if were were unable to completely
- * replenish receive buffers.
+ * returns 0 as oom_allocation_work will be scheduled
+ * to recover any failures.
  */
 static int hif_post_recv_buffers(struct hif_softc *scn)
 {
@@ -1895,13 +1894,9 @@ static int hif_post_recv_buffers(struct hif_softc *scn)
 		    ce_state && (ce_state->htt_rx_data))
 			continue;
 
-		if (hif_post_recv_buffers_for_pipe(pipe_info)) {
-			rv = 1;
-			goto done;
-		}
+		hif_post_recv_buffers_for_pipe(pipe_info);
 	}
 
-done:
 	A_TARGET_ACCESS_UNLIKELY(scn);
 
 	return rv;