aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-13 23:32:42 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-14 12:38:09 +0200
commit62b7900fd77f9f986ed6914477c3e76475e18baf (patch)
treecba47f1eae844c773c4c1aedc539f5e39bf91210
parent61707e8b23564e3a3b1123f231e428cae0759cc7 (diff)
lms: Fix coding style
In Change-Id Ib2fca81b76d027b08e2891056fa076d071597783 we introduced some coding style violations. Let's make newly-added code follows standard Osmocom coding style. Change-Id: Ib7ddd275014f03a2eed3cddc02b1356e2b00c0bc
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index c4d5f96..815a4c5 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -100,19 +100,19 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels)
LMS_RegisterLogHandler(&lms_log_callback);
- if ((n = LMS_GetDeviceList(NULL)) < 0)
- LOG(ERROR) << "LMS_GetDeviceList(NULL) failed";
- LOG(DEBUG) << "Devices found: " << n;
- if (n < 1)
- return -1;
+ if ((n = LMS_GetDeviceList(NULL)) < 0)
+ LOG(ERROR) << "LMS_GetDeviceList(NULL) failed";
+ LOG(DEBUG) << "Devices found: " << n;
+ if (n < 1)
+ return -1;
- info_list = new lms_info_str_t[n];
+ info_list = new lms_info_str_t[n];
- if (LMS_GetDeviceList(info_list) < 0) //Populate device list
- LOG(ERROR) << "LMS_GetDeviceList(info_list) failed";
+ if (LMS_GetDeviceList(info_list) < 0)
+ LOG(ERROR) << "LMS_GetDeviceList(info_list) failed";
- for (i = 0; i < n; i++) //print device list
- LOG(DEBUG) << "Device [" << i << "]: " << info_list[i];
+ for (i = 0; i < n; i++)
+ LOG(DEBUG) << "Device [" << i << "]: " << info_list[i];
rc = LMS_Open(&m_lms_dev, info_list[0], NULL);
if (rc != 0) {