From 60d0b622a905fb74eb094662f01f8fb7dc43e453 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sun, 12 Oct 2014 16:51:25 +0200 Subject: Remove double-assignment to rc varable Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- configuredivecomputerthreads.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp index 04954ad2b..75544672a 100644 --- a/configuredivecomputerthreads.cpp +++ b/configuredivecomputerthreads.cpp @@ -54,7 +54,7 @@ void ReadSettingsThread::run() { bool supported = false; dc_status_t rc; - rc = rc = dc_device_open(&m_data->device, m_data->context, m_data->descriptor, m_data->devname); + rc = dc_device_open(&m_data->device, m_data->context, m_data->descriptor, m_data->devname); if (rc == DC_STATUS_SUCCESS) { DeviceDetails *m_deviceDetails = new DeviceDetails(0); #if DC_VERSION_CHECK(0, 5, 0) @@ -328,7 +328,7 @@ void WriteSettingsThread::run() { bool supported = false; dc_status_t rc; - rc = rc = dc_device_open(&m_data->device, m_data->context, m_data->descriptor, m_data->devname); + rc = dc_device_open(&m_data->device, m_data->context, m_data->descriptor, m_data->devname); if (rc == DC_STATUS_SUCCESS) { #if DC_VERSION_CHECK(0,5,0) if (dc_device_get_type(m_data->device) == DC_FAMILY_HW_OSTC3) { @@ -520,7 +520,7 @@ void FirmwareUpdateThread::run() { bool supported = false; dc_status_t rc; - rc = rc = dc_device_open(&m_data->device, m_data->context, m_data->descriptor, m_data->devname); + rc = dc_device_open(&m_data->device, m_data->context, m_data->descriptor, m_data->devname); if (rc == DC_STATUS_SUCCESS) { #if DC_VERSION_CHECK(0, 5, 0) if (dc_device_get_type(m_data->device) == DC_FAMILY_HW_OSTC3) { -- cgit v1.2.3-70-g09d2