Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
eit: tiny optimization
  • Loading branch information
perexg committed Oct 30, 2015
1 parent f2cf933 commit 8f95863
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/epggrab/module/eit.c
Expand Up @@ -556,10 +556,8 @@ static int _eit_process_event
{
idnode_list_mapping_t *ilm;
channel_t *ch;
int ret = 0;

if ( len < 12 ) return -1;
ret = 12 + (((ptr[10] & 0x0f) << 8) | ptr[11]);

LIST_FOREACH(ilm, &svc->s_channels, ilm_in1_link) {
ch = (channel_t *)ilm->ilm_in2;
Expand All @@ -568,7 +566,7 @@ static int _eit_process_event
ptr, len, local, resched, save) < 0)
return -1;
}
return ret;
return 12 + (((ptr[10] & 0x0f) << 8) | ptr[11]);
}


Expand Down

0 comments on commit 8f95863

Please sign in to comment.