[Hamlib-developer] [Hamlib/Hamlib] 692dec: Remove duplicated conditions
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <no...@gi...> - 2023-03-26 21:16:58
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 692deca638a548d464ba102cc50910531f19bb23 https://github.com/Hamlib/Hamlib/commit/692deca638a548d464ba102cc50910531f19bb23 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2023-03-26 (Sun, 26 Mar 2023) Changed paths: M rigs/yaesu/newcat.c Log Message: ----------- 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 ^ Commit: d522967b320a93bc01529bd0ebb0b3a97f6acc6f https://github.com/Hamlib/Hamlib/commit/d522967b320a93bc01529bd0ebb0b3a97f6acc6f Author: Michael Black <mdb...@ya...> Date: 2023-03-26 (Sun, 26 Mar 2023) Changed paths: M rigs/yaesu/newcat.c Log Message: ----------- Merge pull request #1262 from dforsi/fix/cppcheck Remove duplicated conditions Compare: https://github.com/Hamlib/Hamlib/compare/30b2087f5d3b...d522967b320a |