mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Remove double-assignment to rc varable
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
441bfbb667
commit
60d0b622a9
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue