mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-02 05:03:18 +00:00
lms: Close device on LMS_Init failure
Change-Id: I0b307452a9e122a0ea39a46f096423c9a5293d30
This commit is contained in:
@@ -135,7 +135,7 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels)
|
||||
LOGC(DDEV, INFO) << "Init LMS device";
|
||||
if (LMS_Init(m_lms_dev) != 0) {
|
||||
LOGC(DDEV, ERROR) << "LMS_Init() failed";
|
||||
return -1;
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
if (LMS_GetSampleRateRange(m_lms_dev, LMS_CH_RX, &range_sr))
|
||||
|
||||
Reference in New Issue
Block a user