Parcourir la source

V4L/DVB (12276): Remove a useless check from dvb_dmx_swfilter_packet()

Values for 'pid' range from 0 to 0x1fff. Therefore 'feed->pid' can never
be equal to both 'pid' and 0x2000. This makes the continue statement have
no effect.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Andreas Oberritter il y a 16 ans
Parent
commit
a4afd65870
1 fichiers modifiés avec 2 ajouts et 6 suppressions
  1. 2 6
      drivers/media/dvb/dvb-core/dvb_demux.c

+ 2 - 6
drivers/media/dvb/dvb-core/dvb_demux.c

@@ -425,13 +425,9 @@ no_dvb_demux_tscheck:
 		if ((DVR_FEED(feed)) && (dvr_done++))
 			continue;
 
-		if (feed->pid == pid) {
+		if (feed->pid == pid)
 			dvb_dmx_swfilter_packet_type(feed, buf);
-			if (DVR_FEED(feed))
-				continue;
-		}
-
-		if (feed->pid == 0x2000)
+		else if (feed->pid == 0x2000)
 			feed->cb.ts(buf, 188, NULL, 0, &feed->feed.ts, DMX_OK);
 	}
 }