[PATCH 11/11] fs: fat: fix use of wrong enumeration type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



disk_read returns a DRESULT, not enum filetype. Change the return value
appropriately.

Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx>
---
 fs/fat/ff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fat/ff.c b/fs/fat/ff.c
index ba4adfc13389..4d30433e5f03 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);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux