summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-08-22 07:51:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-30 09:26:06 +0200
commitf32a61b9714f0da07c49d2ead8b10a79e1ddf9c0 (patch)
tree0255536934b6e2f1e2746c6e3ed77993a7a36558 /fs
parent1a97b56180112cd64c6c37688cf2060d01c6402d (diff)
downloadbarebox-f32a61b9714f0da07c49d2ead8b10a79e1ddf9c0.tar.gz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/ff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/ff.c b/fs/fat/ff.c
index ba4adfc..4d30433 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);