aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-23 14:53:27 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-23 14:53:27 +0100
commit0274f3956c322b8e4cc093aad73e67c32d58b590 (patch)
treedbcaee66d0007b0467a625eb1e1f9781d2a5320b
parenta8c4bbbbbe2a4154ce307aba34884854a3cd030a (diff)
downloadv4l-utils-0274f3956c322b8e4cc093aad73e67c32d58b590.tar.gz
dvbv5-zap: remove an unused logic
err_cnt is unsigned. So, it can't be below zero. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--utils/dvb/dvbv5-zap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index aab2daf8..ff91fbb6 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -897,9 +897,6 @@ int do_traffic_monitor(struct arguments *args, struct dvb_device *dvb,
if (pid < 0x1fff && h->adaptation_field_control & 1) {
int discontinued = 0;
- if (err_cnt[pid] < 0)
- err_cnt[pid] = 0;
-
if (h->adaptation_field_control & 2) {
if (h->adaptation_field_length >= 1) {
discontinued = h->discontinued;