Skip to content

Commit

Permalink
Do not close() the fd passed to fwup_set_up_update()
Browse files Browse the repository at this point in the history
This is kinda antisocial for the thing that's using the library.
  • Loading branch information
hughsie authored and vathpela committed Oct 9, 2015
1 parent 7d131b6 commit 91cb275
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions linux/libfwup.c
Expand Up @@ -849,8 +849,6 @@ fwup_set_up_update(fwup_resource *re, uint64_t hw_inst, int infd)
if (sz == 0)
break;
}
close(infd);
infd = -1;
close(fd);
fd = -1;

Expand Down

0 comments on commit 91cb275

Please sign in to comment.