Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb adapter: coverity fixes
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 34c4e71 commit c563c03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input/mpegts/linuxdvb/linuxdvb_adapter.c
Expand Up @@ -141,7 +141,7 @@ linuxdvb_adapter_create
la = calloc(1, sizeof(linuxdvb_adapter_t));
if (!tvh_hardware_create0((tvh_hardware_t*)la, &linuxdvb_adapter_class,
uuid, conf)) {
free(la);
/* Note: la variable is freed in tvh_hardware_create0() */
return NULL;
}

Expand Down Expand Up @@ -237,10 +237,10 @@ linuxdvb_adapter_add ( const char *path )

/* Get frontend info */
for (j = 0; j < MAX_DEV_OPEN_ATTEMPTS; j++) {
if ((fd = tvh_open(fe_path, O_RDWR, 0)) > 0) break;
if ((fd = tvh_open(fe_path, O_RDWR, 0)) >= 0) break;
usleep(100000);
}
if (fd == -1) {
if (fd < 0) {
tvhlog(LOG_ERR, "linuxdvb", "unable to open %s", fe_path);
continue;
}
Expand Down

0 comments on commit c563c03

Please sign in to comment.