common: Always return enum filetype in file_name_detect_type_offset()
None of the callers of file_name_detect_type_offset() are prepared to
deal with negative error code. Change the code to return
filetype_unknown if open_and_lseek() fails.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 05374a6 commit 7c293700db4d1b14ba55bc221af9afc0ed233f01
@Andrey Smirnov Andrey Smirnov authored on 7 Mar 2019
Sascha Hauer committed on 11 Mar 2019
Showing 1 changed file
View
common/filetype.c