/* Processes the return code that results from an attempt to resume a procedure. If the resume attempt failed due to memory exhaustion at a lower layer, the procedure is marked as stalled but still in progress. Otherwise, the resume error code is unmodified.  */
static int ble_gattc_process_resume_status(struct ble_gattc_proc *proc, int status)
/* Processes the return code that results from an attempt to resume a procedure. If the resume attempt failed due to memory exhaustion at a lower layer, the procedure is marked as stalled but still in progress. Otherwise, the resume error code is unmodified.  */
static int ble_gattc_process_resume_status(struct ble_gattc_proc *proc, int status)
{
    switch (status) {
    case 0:
        return 0;
    case BLE_HS_ENOMEM:
        ble_gattc_proc_set_resume_timer(proc);
        return 0;
    default:
        return status;
    }
}