mirror of https://github.com/ARMmbed/mbed-os.git
PPPinterface: remove address getters check for invalid pointer
parent
ffdd54315f
commit
ecc89c98c7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue