kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in ft980.c
rodzic
8997f0129a
commit
6ad5a072c8
|
@ -1403,7 +1403,7 @@ int ft980_set_vfo(RIG *rig, vfo_t vfo)
|
||||||
int ft980_get_vfo(RIG *rig, vfo_t *vfo)
|
int ft980_get_vfo(RIG *rig, vfo_t *vfo)
|
||||||
{
|
{
|
||||||
int err;
|
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__);
|
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;
|
return -RIG_EARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
priv = (struct ft980_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
/* Get flags for VFO status */
|
/* Get flags for VFO status */
|
||||||
err = ft980_get_status_data(rig);
|
err = ft980_get_status_data(rig);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue