Skip to content

Commit 34c9cf9

Browse files
authored
Merge pull request #11975 from michalpasztamobica/pppinterface_pointer_checks
PPPinterface: remove faulty address getter check for invalid pointer
2 parents 64d172c + ecc89c9 commit 34c9cf9

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)