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
This commit is contained in:
Houston Hoffman 2017-04-06 14:23:20 -07:00 • committed by snandini
commit 60ff932b38

View file

@ -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;