bootm: Print which file cannot be opened
When opening the OS image fails we used to print a message *which* file
could not be opened. This message is no longer printed since we now fail
in read_file_2 when there is an error. Move the message in the
read_file_2 failure path to print it again. file_detect_type() needs no
handling for ret < 0, in case of failure it returns filetype_unknown
which is handled later, so we can remove the error handling there.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b4bea4a commit 45af01d16dbaabd918c141fcb7dcd7efeeac7c07
@Sascha Hauer Sascha Hauer authored on 15 Nov 2018
Showing 1 changed file
View
common/bootm.c