projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rockchip: clk: rk3288: limit gpll and cpll init to SPL build
[oweals/u-boot.git]
/
test
/
dm
/
video.c
diff --git
a/test/dm/video.c
b/test/dm/video.c
index de223281b45c8480c9e20379bf21ed86f540cf4d..4d000fa1bea5b41681b763b0dd318dd52d6f4afd 100644
(file)
--- a/
test/dm/video.c
+++ b/
test/dm/video.c
@@
-249,9
+249,9
@@
static int read_file(struct unit_test_state *uts, const char *fname,
fd = os_open(fname, OS_O_RDONLY);
ut_assert(fd >= 0);
size = os_read(fd, buf, buf_size);
+ os_close(fd);
ut_assert(size >= 0);
ut_assert(size < buf_size);
- os_close(fd);
*addrp = addr;
return 0;