target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp

Fix this build warning seen when building with ARMCC

Compile [ 13.7%]: UBLOX_AT_CellularNetwork.cpp
[Warning] UBLOX_AT_CellularNetwork.cpp@65,0:  #111-D: statement is unreachable
pull/9692/head
Naveen Kaje 2019-02-12 15:38:42 -06:00
parent 36e65d2cb1
commit 02e42fef3e
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@ UBLOX_AT_CellularNetwork::~UBLOX_AT_CellularNetwork()
nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTechnology opRat)
{
nsapi_error_t ret = NSAPI_ERROR_OK;
switch (opRat) {
#if defined(TARGET_UBLOX_C030_U201) || defined(TARGET_UBLOX_C027)
case RAT_GSM:
@ -58,9 +60,9 @@ nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTe
#endif
default: {
_op_act = RAT_UNKNOWN;
return NSAPI_ERROR_UNSUPPORTED;
ret = NSAPI_ERROR_UNSUPPORTED;
}
}
return NSAPI_ERROR_OK;
return(ret);
}