PPPinterface: remove address getters check for invalid pointer

pull/11975/head
Michal Paszta 2019-11-28 15:48:38 +02:00
parent ffdd54315f
commit ecc89c98c7
1 changed files with 0 additions and 4 deletions

View File

@ -94,10 +94,6 @@ const char *PPPInterface::get_ip_address()
nsapi_error_t PPPInterface::get_ip_address(SocketAddress *address)
{
if (address) {
return NSAPI_ERROR_PARAMETER;
}
if (_interface && _interface->get_ip_address(address) == NSAPI_ERROR_OK) {
strncpy(_ip_address, address->get_ip_address(), sizeof(_ip_address));
return NSAPI_ERROR_OK;