From 12b0bc4a3649c7658871358a97fe774eca777b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teppo=20J=C3=A4rvelin?= Date: Tue, 20 Mar 2018 16:17:20 +0200 Subject: [PATCH] Fixed coverity warnings for AT_CellularStack. --- features/cellular/framework/AT/AT_CellularStack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/cellular/framework/AT/AT_CellularStack.cpp b/features/cellular/framework/AT/AT_CellularStack.cpp index 5abd1fffdb..6a3f1ec999 100644 --- a/features/cellular/framework/AT/AT_CellularStack.cpp +++ b/features/cellular/framework/AT/AT_CellularStack.cpp @@ -68,7 +68,7 @@ const char * AT_CellularStack::get_ip_address() // in case stack type is not IPV4 only, try to look also for IPV6 address if (_stack_type != IPV4_STACK) { - len = _at.read_string(_ip, PDP_IPV6_SIZE-1); + (void)_at.read_string(_ip, PDP_IPV6_SIZE-1); } } @@ -158,7 +158,6 @@ nsapi_error_t AT_CellularStack::socket_close(nsapi_socket_t handle) _at.unlock(); delete socket; - socket = NULL; return err; }