Permalink
Browse files

Do not close() the fd passed to fwup_set_up_update()

This is kinda antisocial for the thing that's using the library.
  • Loading branch information...
1 parent 7d131b6 commit 91cb275c1bec0da0c61038892d980f1505e0ce3f @hughsie hughsie committed with vathpela Oct 9, 2015
Showing with 0 additions and 2 deletions.
  1. +0 −2 linux/libfwup.c
View
@@ -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;

0 comments on commit 91cb275

Please sign in to comment.