From ecc89c98c7bb805876badd57815eb7ae9527e99c Mon Sep 17 00:00:00 2001 From: Michal Paszta Date: Thu, 28 Nov 2019 15:48:38 +0200 Subject: [PATCH] PPPinterface: remove address getters check for invalid pointer --- features/netsocket/PPPInterface.cpp | 4 ---- 1 file changed, 4 deletions(-) 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;