kopia lustrzana https://github.com/Hamlib/Hamlib
Remove duplicated conditions
Fixes: rigs/yaesu/newcat.c:10537:9: style: Same expression 'strcmp(priv->cmd_str,"IS1;")==0' found multiple times in chain of '||' operators. [duplicateExpression] || strcmp(priv->cmd_str, "IS1;") == 0 ^ rigs/yaesu/newcat.c:10548:9: style: Same expression 'strcmp(priv->cmd_str,"NR0;")==0' found multiple times in chain of '||' operators. [duplicateExpression] || strcmp(priv->cmd_str, "NR0;") == 0 ^ rigs/yaesu/newcat.c:10549:9: style: Same expression 'strcmp(priv->cmd_str,"NR1;")==0' found multiple times in chain of '||' operators. [duplicateExpression] || strcmp(priv->cmd_str, "NR1;") == 0 ^ rigs/yaesu/newcat.c:10552:9: style: Same expression on both sides of '||'. [duplicateExpression] || strcmp(priv->cmd_str, "OS0;") == 0 ^pull/1262/head
rodzic
30b2087f5d
commit
692deca638
|
@ -10532,7 +10532,6 @@ int newcat_get_cmd(RIG *rig)
|
|||
|| strcmp(priv->cmd_str, "CO11;") == 0
|
||||
|| strcmp(priv->cmd_str, "CO12;") == 0
|
||||
|| strcmp(priv->cmd_str, "CO13;") == 0
|
||||
|| strcmp(priv->cmd_str, "IS1;") == 0
|
||||
|| strcmp(priv->cmd_str, "IS0;") == 0
|
||||
|| strcmp(priv->cmd_str, "IS1;") == 0
|
||||
|| strcmp(priv->cmd_str, "MD0;") == 0
|
||||
|
@ -10545,11 +10544,8 @@ int newcat_get_cmd(RIG *rig)
|
|||
|| strcmp(priv->cmd_str, "NL1;") == 0
|
||||
|| strcmp(priv->cmd_str, "NR0;") == 0
|
||||
|| strcmp(priv->cmd_str, "NR1;") == 0
|
||||
|| strcmp(priv->cmd_str, "NR0;") == 0
|
||||
|| strcmp(priv->cmd_str, "NR1;") == 0
|
||||
|| strcmp(priv->cmd_str, "OI;") == 0
|
||||
|| strcmp(priv->cmd_str, "OS0;") == 0
|
||||
|| strcmp(priv->cmd_str, "OS0;") == 0
|
||||
|| strcmp(priv->cmd_str, "OS1;") == 0
|
||||
|| strcmp(priv->cmd_str, "PA0;") == 0
|
||||
|| strcmp(priv->cmd_str, "PA1;") == 0
|
||||
|
|
Ładowanie…
Reference in New Issue