diff options
author | Alexander Dahl <ada@thorsis.com> | 2018-04-20 15:29:30 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-28 18:32:24 -0400 |
commit | 3559028cb2840cc283652f4b7e4e1b457e6ec6a5 (patch) | |
tree | 51b991b8fd3be1921711e191b2217ebd254af3df /configs/ls1021atwr_sdcard_qspi_defconfig | |
parent | 8dc4e1fbf439d63082419640b6e797dfdfcc4720 (diff) |
tools: mkenvimage: Fix read() stdin error handling
On success read() returns the number of bytes read or zero for EOF. On
error -1 is returned and errno is set, so the right way to test if read
had failed is to test the return value instead of errno.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Diffstat (limited to 'configs/ls1021atwr_sdcard_qspi_defconfig')
0 files changed, 0 insertions, 0 deletions