tBTA_HL_STATUS status,
UINT16 evt )
{
- tBTA_HL_CI_GET_PUT_DATA *p_evt;
+ tBTA_HL_CI_GET_PUT_DATA *p_evt =
+ (tBTA_HL_CI_GET_PUT_DATA *)osi_malloc(sizeof(tBTA_HL_CI_GET_PUT_DATA));
#if (BTA_HL_DEBUG == TRUE)
- APPL_TRACE_DEBUG("bta_hl_ci_get_tx_data mdl_handle=%d status=%d evt=%d\n",
- mdl_handle, status, evt);
+ APPL_TRACE_DEBUG("%s mdl_handle=%d status=%d evt=%d\n", __func__,
+ mdl_handle, status, evt);
#endif
- if ((p_evt = (tBTA_HL_CI_GET_PUT_DATA *)osi_getbuf(sizeof(tBTA_HL_CI_GET_PUT_DATA))) != NULL)
- {
- p_evt->hdr.event = evt;
- p_evt->mdl_handle = mdl_handle;
- p_evt->status = status;
- bta_sys_sendmsg(p_evt);
- }
+ p_evt->hdr.event = evt;
+ p_evt->mdl_handle = mdl_handle;
+ p_evt->status = status;
+
+ bta_sys_sendmsg(p_evt);
}
/*******************************************************************************
tBTA_HL_STATUS status,
UINT16 evt )
{
- tBTA_HL_CI_GET_PUT_DATA *p_evt;
+ tBTA_HL_CI_GET_PUT_DATA *p_evt =
+ (tBTA_HL_CI_GET_PUT_DATA *)osi_malloc(sizeof(tBTA_HL_CI_GET_PUT_DATA));
+
#if (BTA_HL_DEBUG == TRUE)
- APPL_TRACE_DEBUG("bta_hl_ci_put_rx_data mdl_handle=%d status=%d evt=%d\n",
- mdl_handle, status, evt);
+ APPL_TRACE_DEBUG("%s mdl_handle=%d status=%d evt=%d\n", __func__,
+ mdl_handle, status, evt);
#endif
- if ((p_evt = (tBTA_HL_CI_GET_PUT_DATA *)osi_getbuf(sizeof(tBTA_HL_CI_GET_PUT_DATA))) != NULL)
- {
- p_evt->hdr.event = evt;
- p_evt->mdl_handle = mdl_handle;
- p_evt->status = status;
- bta_sys_sendmsg(p_evt);
- }
-}
+ p_evt->hdr.event = evt;
+ p_evt->mdl_handle = mdl_handle;
+ p_evt->status = status;
+ bta_sys_sendmsg(p_evt);
+}
/*******************************************************************************
**
tBTA_HL_STATUS status,
UINT16 evt )
{
- tBTA_HL_CI_ECHO_DATA *p_evt;
+ tBTA_HL_CI_ECHO_DATA *p_evt =
+ (tBTA_HL_CI_ECHO_DATA *)osi_malloc(sizeof(tBTA_HL_CI_ECHO_DATA));
#if (BTA_HL_DEBUG == TRUE)
- APPL_TRACE_DEBUG("bta_hl_ci_get_echo_data mcl_handle=%d status=%d evt=%d\n",
- mcl_handle, status, evt);
+ APPL_TRACE_DEBUG("%s mcl_handle=%d status=%d evt=%d\n", __func__,
+ mcl_handle, status, evt);
#endif
- if ((p_evt = (tBTA_HL_CI_ECHO_DATA *)osi_getbuf(sizeof(tBTA_HL_CI_ECHO_DATA))) != NULL)
- {
- p_evt->hdr.event = evt;
- p_evt->mcl_handle = mcl_handle;
- p_evt->status = status;
- bta_sys_sendmsg(p_evt);
- }
+ p_evt->hdr.event = evt;
+ p_evt->mcl_handle = mcl_handle;
+ p_evt->status = status;
+
+ bta_sys_sendmsg(p_evt);
}
/*******************************************************************************
tBTA_HL_STATUS status,
UINT16 evt )
{
- tBTA_HL_CI_ECHO_DATA *p_evt;
+ tBTA_HL_CI_ECHO_DATA *p_evt =
+ (tBTA_HL_CI_ECHO_DATA *)osi_malloc(sizeof(tBTA_HL_CI_ECHO_DATA));
#if (BTA_HL_DEBUG == TRUE)
- APPL_TRACE_DEBUG("bta_hl_ci_put_echo_data mcl_handle=%d status=%d evt=%d\n",
+ APPL_TRACE_DEBUG("%s mcl_handle=%d status=%d evt=%d\n", __func__,
mcl_handle, status, evt);
#endif
- if ((p_evt = (tBTA_HL_CI_ECHO_DATA *)osi_getbuf(sizeof(tBTA_HL_CI_ECHO_DATA))) != NULL)
- {
- p_evt->hdr.event = evt;
- p_evt->mcl_handle = mcl_handle;
- p_evt->status = status;
- bta_sys_sendmsg(p_evt);
- }
+ p_evt->hdr.event = evt;
+ p_evt->mcl_handle = mcl_handle;
+ p_evt->status = status;
+
+ bta_sys_sendmsg(p_evt);
}