diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2019-08-22 07:51:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-30 09:26:06 +0200 |
commit | f32a61b9714f0da07c49d2ead8b10a79e1ddf9c0 (patch) | |
tree | 0255536934b6e2f1e2746c6e3ed77993a7a36558 | |
parent | 1a97b56180112cd64c6c37688cf2060d01c6402d (diff) | |
download | barebox-f32a61b9714f0da07c49d2ead8b10a79e1ddf9c0.tar.gz barebox-f32a61b9714f0da07c49d2ead8b10a79e1ddf9c0.tar.xz |
fs: fat: fix use of wrong enumeration type
disk_read returns a DRESULT, not enum filetype. Change the return value
appropriately.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | fs/fat/ff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/ff.c b/fs/fat/ff.c index ba4adfc133..4d30433e5f 100644 --- a/fs/fat/ff.c +++ b/fs/fat/ff.c @@ -1538,7 +1538,7 @@ static enum filetype check_fs ( /* 0:The FAT BR, 1:Valid BR but not an FAT, 2:No DWORD *bootsec ) { - enum filetype ret; + DRESULT ret; /* Load boot record */ ret = disk_read(fs, fs->win, sect, 1); |