Skip to content

Commit

Permalink
cppcheck: Fix "known condition" warning in cc708 decoder.
Browse files Browse the repository at this point in the history
The enum value CLW occurs immediately after the value CW7. Given the
prior and handling of all cases where the value is <= CW7, the "else
if" check for >= CLW is redundant.
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent 8cc709e commit 79638ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/captions/cc708decoder.cpp
Expand Up @@ -387,7 +387,7 @@ static int handle_cc_c1(CC708Reader* cc, uint service_num, int i)
*/
i+=1;
}
else if (code>=CLW && code<=DLY && ((i+1)<blk_size))
else if (code<=DLY && ((i+1)<blk_size))
{ // 1 byte of paramaters
int param1 = blk_buf[i+1];
SEND_STR;
Expand Down

0 comments on commit 79638ed

Please sign in to comment.