commit | ed361f9912936ce97a372b249059bc436b530976 | [log] [tgz] |
---|---|---|
author | Pau Espin Pedrol <pespin@sysmocom.de> | Tue Dec 04 12:42:30 2018 +0100 |
committer | Pau Espin Pedrol <pespin@sysmocom.de> | Tue Dec 04 15:57:37 2018 +0000 |
tree | 0f4312c553df4df6c42cd428f18b29cfbb3dabe0 | |
parent | 2d085e290bbe0ebf1b666aab4d4e0af9c17c1a58 [diff] [blame] |
lms: Close device on LMS_Init failure Change-Id: I0b307452a9e122a0ea39a46f096423c9a5293d30
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index 144f75d..712652a 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -135,7 +135,7 @@ 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))