mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 20:25:19 +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) {
|
while (len) {
|
||||||
if (n >= vec_len) {
|
if (n >= vec_len) {
|
||||||
close(fd);
|
|
||||||
errno = EOVERFLOW;
|
errno = EOVERFLOW;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -163,7 +162,6 @@ int physmem_xlat(const void *v, size_t len,
|
|||||||
vaddr += this_len;
|
vaddr += this_len;
|
||||||
len -= this_len;
|
len -= this_len;
|
||||||
}
|
}
|
||||||
close(fd);
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user