Pau Espin Pedrol has uploaded this change for review. ( 
https://gerrit.osmocom.org/12091


Change subject: lms: Close device on LMS_Init failure
......................................................................

lms: Close device on LMS_Init failure

Change-Id: I0b307452a9e122a0ea39a46f096423c9a5293d30
---
M Transceiver52M/device/lms/LMSDevice.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/91/12091/1

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))

--
To view, visit https://gerrit.osmocom.org/12091
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0b307452a9e122a0ea39a46f096423c9a5293d30
Gerrit-Change-Number: 12091
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to