Fix unused code in ft857.c found by cppcheck

pull/174/head
Michael Black 2020-01-14 14:09:28 -06:00
rodzic cd383fc538
commit 2e73c6ac47
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -535,10 +535,9 @@ static int ft857_send_icmd(RIG *rig, int index, unsigned char *data)
int ft857_get_vfo(RIG *rig, vfo_t *vfo)
{
unsigned char c;
int n;
*vfo = RIG_VFO_B;
if ((n = ft857_read_eeprom(rig, 0x0068, &c)) < 0) /* get vfo status */
if (ft857_read_eeprom(rig, 0x0068, &c) < 0) /* get vfo status */
{
return -RIG_EPROTO;
}