Change-Id: Ie09e713b5c050ed4681eb61547208b32799494ed
RET_VAL_IF(len == 0, 0, "len is 0");
vine_gatt_s *gatt = (vine_gatt_s *)handle;
- gatt_data_s *gd = NULL;
+ gatt_data_s *gd = nullptr;
size_t bytes = 0;
if (!gatt->recv_buffer)
gatt->recv_buffer->pop();
bool last = gd->last;
__destroy_gatt_data(gd);
- gd = NULL;
+ gd = nullptr;
if (last)
break;
} else if (read_len < gd->len) { // requeue
RET_VAL_IF(len == 0, 0, "len is 0");
websocket_s *ws = (websocket_s *)handle;
- websocket_data_s *wd = NULL;
+ websocket_data_s *wd = nullptr;
size_t bytes = 0;
if (!ws->recv_buffer)
ws->recv_buffer->pop();
bool last = wd->last;
__destroy_websocket_data(wd);
- wd = NULL;
+ wd = nullptr;
if (last)
break;
} else if (read_len < wd->len) { // requeue