diff --git a/libraries/FileSystem/src/fatfs/source/diskio.c b/libraries/FileSystem/src/fatfs/source/diskio.c index 8bd7d058..de192fc8 100644 --- a/libraries/FileSystem/src/fatfs/source/diskio.c +++ b/libraries/FileSystem/src/fatfs/source/diskio.c @@ -26,32 +26,8 @@ DSTATUS disk_status ( BYTE pdrv /* Physical drive nmuber to identify the drive */ ) { - DSTATUS stat; - int result; - - switch (pdrv) { - case DEV_RAM : - result = RAM_disk_status(); - - // translate the reslut code here - - return stat; - - case DEV_MMC : - result = MMC_disk_status(); - - // translate the reslut code here - - return stat; - - case DEV_USB : - result = USB_disk_status(); - - // translate the reslut code here - - return stat; - } - return STA_NOINIT; + (void) pdrv; + return 0; } @@ -64,32 +40,8 @@ DSTATUS disk_initialize ( BYTE pdrv /* Physical drive nmuber to identify the drive */ ) { - DSTATUS stat; - int result; - - switch (pdrv) { - case DEV_RAM : - result = RAM_disk_initialize(); - - // translate the reslut code here - - return stat; - - case DEV_MMC : - result = MMC_disk_initialize(); - - // translate the reslut code here - - return stat; - - case DEV_USB : - result = USB_disk_initialize(); - - // translate the reslut code here - - return stat; - } - return STA_NOINIT; + (void) pdrv; + return 0; }