From 2e069e326cf31f4f4e554f49dcf165d48e779059 Mon Sep 17 00:00:00 2001 From: Aurora Date: Tue, 11 Oct 2016 17:16:59 +0200 Subject: [PATCH] Not needed anymore --- haxloader/source/fatfs/diskio.c | 2 +- source/fatfs/diskio.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/haxloader/source/fatfs/diskio.c b/haxloader/source/fatfs/diskio.c index d219047..35c86b2 100644 --- a/haxloader/source/fatfs/diskio.c +++ b/haxloader/source/fatfs/diskio.c @@ -50,7 +50,7 @@ DRESULT disk_read ( UINT count /* Number of sectors to read */ ) { - return (!sdmmc_sdcard_readsectors(sector, count, (BYTE *)buff)) ? RES_OK : RES_PARERR; + return (!sdmmc_sdcard_readsectors(sector, count, buff)) ? RES_OK : RES_PARERR; } diff --git a/source/fatfs/diskio.c b/source/fatfs/diskio.c index 048552a..4dd504c 100644 --- a/source/fatfs/diskio.c +++ b/source/fatfs/diskio.c @@ -69,8 +69,8 @@ DRESULT disk_read ( UINT count /* Number of sectors to read */ ) { - return ((pdrv == SDCARD && !sdmmc_sdcard_readsectors(sector, count, (BYTE *)buff)) || - (pdrv == CTRNAND && !ctrNandRead(sector, count, (BYTE *)buff))) ? RES_OK : RES_PARERR; + return ((pdrv == SDCARD && !sdmmc_sdcard_readsectors(sector, count, buff)) || + (pdrv == CTRNAND && !ctrNandRead(sector, count, buff))) ? RES_OK : RES_PARERR; } @@ -87,7 +87,7 @@ DRESULT disk_write ( UINT count /* Number of sectors to write */ ) { - return ((pdrv == SDCARD && !sdmmc_sdcard_writesectors(sector, count, (BYTE *)buff)) || + return ((pdrv == SDCARD && !sdmmc_sdcard_writesectors(sector, count, buff)) || (pdrv == CTRNAND && !ctrNandWrite(sector, count, buff))) ? RES_OK : RES_PARERR; } #endif