Fix cppcheck warnings in xg3.c

pull/155/head
Michael Black 2019-12-18 22:57:21 -06:00
rodzic becc661ed7
commit f187fd86cd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -107,7 +107,7 @@ const struct rig_caps xg3_caps =
.rig_model = RIG_MODEL_XG3,
.model_name = "XG3",
.mfg_name = "Elecraft",
.version = "20150101",
.version = "20191218",
.copyright = "LGPL",
.status = RIG_STATUS_BETA,
.rig_type = RIG_TYPE_TRANSCEIVER,
@ -514,11 +514,6 @@ int xg3_get_powerstat(RIG *rig, powerstat_t *status)
retval = read_string(&rs->rigport, reply, sizeof(reply), ";", 1);
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
if (retval != RIG_OK)
{
return retval;
}
if (retval != RIG_OK)
{
*status = RIG_POWER_OFF; // Error indicates power is off