Fix check for RIG_BUSBUSY

Fixes a cppcheck warning:
rigs/icom/frame.c:510:19: style: Redundant condition: The condition 'i != 14' is redundant since 'i < 0' is sufficient. [redundantCondition]
        if (i < 0 && i != RIG_BUSBUSY) /* die on errors */
pull/1273/head
Daniele Forsi IU5HKX 2023-04-11 23:20:32 +02:00
rodzic 6c197dbc1c
commit 6f0efd59e6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -507,7 +507,7 @@ static int read_icom_frame_generic(hamlib_port_t *p,
icom_block_end, icom_block_end_length, 0, 1);
}
if (i < 0 && i != RIG_BUSBUSY) /* die on errors */
if (i < 0 && i != -RIG_BUSBUSY) /* die on errors */
{
return (i);
}