diff options
author | Tom Rini <trini@konsulko.com> | 2016-02-08 09:48:04 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-08 09:48:04 -0500 |
commit | 57dc53a72460e8e301fa1cc7951b41db8e731485 (patch) | |
tree | 856a679e994fdc529a97763e851ed2e546ba3742 /test/dm/video.c | |
parent | 7b6dc11c1aa69e5cc22d1659f50594edcfab5a9e (diff) | |
parent | 2300184f702656b72394e458bf15f7aaba8af892 (diff) | |
download | u-boot-imx-57dc53a72460e8e301fa1cc7951b41db8e731485.zip u-boot-imx-57dc53a72460e8e301fa1cc7951b41db8e731485.tar.gz u-boot-imx-57dc53a72460e8e301fa1cc7951b41db8e731485.tar.bz2 |
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
Diffstat (limited to 'test/dm/video.c')
-rw-r--r-- | test/dm/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/video.c b/test/dm/video.c index de22328..4d000fa 100644 --- 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; |