Fix cppcheck warnings in ft991.c

pull/312/head
Michael Black W9MDB 2020-06-11 22:29:26 -05:00
rodzic ef451705b8
commit 0782cdf5c3
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -711,9 +711,7 @@ static int ft991_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone)
static int ft991_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone)
{
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
int i;
int err;
ncboolean tone_match;
rmode_t rmode;
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__);
@ -736,6 +734,8 @@ static int ft991_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone)
}
else
{
int i;
ncboolean tone_match;
for (i = 0, tone_match = FALSE; rig->caps->ctcss_list[i] != 0; i++)
{
if (tone == rig->caps->ctcss_list[i])