From 60ff932b3810f00dde494158d005a9465e61965c Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Thu, 6 Apr 2017 14:23:20 -0700 Subject: [PATCH] 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 --- hif/src/ce/ce_main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index 1b25d6c96c50..5377e67464c5 100644 --- a/hif/src/ce/ce_main.c +++ b/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;