Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts network dvb: remove dead code (coverity)
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 1932c7e commit ff203ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/mpegts/mpegts_network_dvb.c
Expand Up @@ -586,7 +586,7 @@ void dvb_network_init ( void )
htsmsg_t *c, *e;
htsmsg_field_t *f;
const char *s;
int i, move = 0;
int i;

/* Load scan files */
scanfile_init();
Expand All @@ -608,7 +608,7 @@ void dvb_network_init ( void )
if (!(e = htsmsg_get_map(e, "config"))) continue;
if (!(s = htsmsg_get_str(e, "class"))) continue;
for (i = 0; i < ARRAY_SIZE(dvb_network_classes); i++) {
if(!strcmp(dvb_network_classes[i]->ic_class, s + (move ? 5 : 0))) {
if(!strcmp(dvb_network_classes[i]->ic_class, s)) {
dvb_network_create0(f->hmf_name, dvb_network_classes[i], e);
break;
}
Expand Down

0 comments on commit ff203ab

Please sign in to comment.