Fixed coverity warnings for AT_CellularStack.

pull/6496/head
Teppo Järvelin 2018-03-20 16:17:20 +02:00
parent af0de8ece0
commit 12b0bc4a36
1 changed files with 1 additions and 2 deletions

View File

@ -68,7 +68,7 @@ const char * AT_CellularStack::get_ip_address()
// in case stack type is not IPV4 only, try to look also for IPV6 address // in case stack type is not IPV4 only, try to look also for IPV6 address
if (_stack_type != IPV4_STACK) { if (_stack_type != IPV4_STACK) {
len = _at.read_string(_ip, PDP_IPV6_SIZE-1); (void)_at.read_string(_ip, PDP_IPV6_SIZE-1);
} }
} }
@ -158,7 +158,6 @@ nsapi_error_t AT_CellularStack::socket_close(nsapi_socket_t handle)
_at.unlock(); _at.unlock();
delete socket; delete socket;
socket = NULL;
return err; return err;
} }