SRSENB: quit without initiating more components if radio fails to initiate

This commit is contained in:
Xavier Arteaga 2020-06-09 12:51:17 +02:00 committed by Xavier Arteaga
parent 5258f27490
commit bcc6c3e449
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ int enb::init(const all_args_t& args_, srslte::logger* logger_)
// Init Radio
if (lte_radio->init(args.rf, lte_phy.get())) {
log->console("Error initializing radio.\n");
ret = SRSLTE_ERROR;
return SRSLTE_ERROR;
}
// Only Init PHY if radio couldn't be initialized