diff --git a/features/netsocket/PPPInterface.cpp b/features/netsocket/PPPInterface.cpp index 713f8f8b5a..5274956858 100644 --- a/features/netsocket/PPPInterface.cpp +++ b/features/netsocket/PPPInterface.cpp @@ -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;