Fix cppcheck warning in ft980.c

pull/574/head
Michael Black W9MDB 2021-02-28 12:26:15 -06:00
rodzic 8997f0129a
commit 6ad5a072c8
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1403,7 +1403,7 @@ int ft980_set_vfo(RIG *rig, vfo_t vfo)
int ft980_get_vfo(RIG *rig, vfo_t *vfo)
{
int err;
struct ft980_priv_data *priv = (struct ft980_priv_data *)rig->state.priv;
struct ft980_priv_data *priv;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
@ -1412,6 +1412,8 @@ int ft980_get_vfo(RIG *rig, vfo_t *vfo)
return -RIG_EARG;
}
priv = (struct ft980_priv_data *)rig->state.priv;
/* Get flags for VFO status */
err = ft980_get_status_data(rig);