read_file_2: Fix return value
Set return value correct in error case.
This prevents barebox from crashing in some conditions.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ea569b0 commit 9d50b3484548459f795e342c8c67e8584a071449
@Teresa Gámez Teresa Gámez authored on 24 Sep 2014
Sascha Hauer committed on 25 Sep 2014
Showing 1 changed file
View
lib/libfile.c