mirror of https://github.com/ARMmbed/mbed-os.git
CellularStack: remove unnecessary assignment.
Fixes Coverity issue about unused variable.pull/11558/head
parent
7c13b8f6b9
commit
b0b9553991
|
@ -281,10 +281,9 @@ nsapi_size_or_error_t RM1000_AT_CellularStack::socket_recvfrom_impl(CellularSock
|
|||
} else {
|
||||
if (count == 0) {
|
||||
// Timeout with nothing received
|
||||
nsapi_error_size = NSAPI_ERROR_WOULD_BLOCK;
|
||||
success = false;
|
||||
}
|
||||
size = 0; // This simply to cause an exit
|
||||
break;
|
||||
}
|
||||
}
|
||||
timer.stop();
|
||||
|
|
|
@ -302,10 +302,9 @@ nsapi_size_or_error_t UBLOX_AT_CellularStack::socket_recvfrom_impl(CellularSocke
|
|||
} else {
|
||||
if (count == 0) {
|
||||
// Timeout with nothing received
|
||||
nsapi_error_size = NSAPI_ERROR_WOULD_BLOCK;
|
||||
success = false;
|
||||
}
|
||||
size = 0; // This simply to cause an exit
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (socket->proto == NSAPI_TCP) {
|
||||
|
@ -346,10 +345,9 @@ nsapi_size_or_error_t UBLOX_AT_CellularStack::socket_recvfrom_impl(CellularSocke
|
|||
} else {
|
||||
if (count == 0) {
|
||||
// Timeout with nothing received
|
||||
nsapi_error_size = NSAPI_ERROR_WOULD_BLOCK;
|
||||
success = false;
|
||||
}
|
||||
size = 0; // This simply to cause an exit
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue