ft600.c: Drop width check, code below has no check.

The lower code would have crashed if width was NULL, so 'width == NULL' never
happens.
pull/771/head
Wouter van Gulik 2021-08-21 20:45:43 +02:00
rodzic 83a8b98a86
commit d1bfa0172f
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -467,10 +467,7 @@ int ft600_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
return -RIG_EINVAL;
}
if (width != NULL)
{
*width = RIG_PASSBAND_NORMAL;
}
*width = RIG_PASSBAND_NORMAL;
ret = ft600_read_status(rig);