mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 20:59:42 +02:00
libubb/physmem.c (physmem_xlat): don't close the (supposedly) cached fd
This commit is contained in:
parent
13f34170de
commit
96ae3319c5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user