Skip to content

Commit 193fd80

Browse files
PPPinterface: address getters check for invalid pointer
1 parent ffdd543 commit 193fd80

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

features/netsocket/PPPInterface.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ const char *PPPInterface::get_ip_address()
9494

9595
nsapi_error_t PPPInterface::get_ip_address(SocketAddress *address)
9696
{
97-
if (address) {
98-
return NSAPI_ERROR_PARAMETER;
99-
}
100-
10197
if (_interface && _interface->get_ip_address(address) == NSAPI_ERROR_OK) {
10298
strncpy(_ip_address, address->get_ip_address(), sizeof(_ip_address));
10399
return NSAPI_ERROR_OK;

0 commit comments

Comments
 (0)