mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27:27 +03:00
libubb/physmem.c (physmem_xlat): don't close the (supposedly) cached fd
This commit is contained in:
@@ -148,7 +148,6 @@ int physmem_xlat(const void *v, size_t len,
|
||||
|
||||
while (len) {
|
||||
if (n >= vec_len) {
|
||||
close(fd);
|
||||
errno = EOVERFLOW;
|
||||
return -1;
|
||||
}
|
||||
@@ -163,7 +162,6 @@ int physmem_xlat(const void *v, size_t len,
|
||||
vaddr += this_len;
|
||||
len -= this_len;
|
||||
}
|
||||
close(fd);
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user