Further style improvements. Tested: Read still works
This commit is contained in:
parent
6021c9e1e2
commit
d722738de9
@ -28,12 +28,10 @@ DSTATUS disk_status (
|
||||
BYTE pdrv /* Physical drive nmuber to identify the drive */
|
||||
)
|
||||
{
|
||||
DSTATUS stat;
|
||||
int result;
|
||||
|
||||
switch (pdrv) {
|
||||
case DEV_SD:
|
||||
return sdio_status();
|
||||
return sdio_status();
|
||||
}
|
||||
return STA_NOINIT;
|
||||
}
|
||||
@ -48,12 +46,9 @@ DSTATUS disk_initialize (
|
||||
BYTE pdrv /* Physical drive nmuber to identify the drive */
|
||||
)
|
||||
{
|
||||
DSTATUS stat;
|
||||
int result;
|
||||
|
||||
switch (pdrv) {
|
||||
case DEV_SD:
|
||||
return sdio_initialize();
|
||||
return sdio_initialize();
|
||||
}
|
||||
return STA_NOINIT;
|
||||
}
|
||||
@ -71,12 +66,9 @@ DRESULT disk_read (
|
||||
UINT count /* Number of sectors to read */
|
||||
)
|
||||
{
|
||||
DRESULT res;
|
||||
int result;
|
||||
|
||||
switch (pdrv) {
|
||||
case DEV_SD:
|
||||
return sdio_disk_read(buff, sector, count);
|
||||
return sdio_disk_read(buff, sector, count);
|
||||
}
|
||||
return RES_PARERR;
|
||||
}
|
||||
@ -96,12 +88,9 @@ DRESULT disk_write (
|
||||
UINT count /* Number of sectors to write */
|
||||
)
|
||||
{
|
||||
DRESULT res;
|
||||
int result;
|
||||
|
||||
switch (pdrv) {
|
||||
case DEV_SD:
|
||||
return SDIO_disk_write(buff, sector, count);
|
||||
return sdio_disk_write(buff, sector, count);
|
||||
}
|
||||
|
||||
return RES_PARERR;
|
||||
@ -120,12 +109,9 @@ DRESULT disk_ioctl (
|
||||
void *buff /* Buffer to send/receive control data */
|
||||
)
|
||||
{
|
||||
DRESULT res;
|
||||
int result;
|
||||
|
||||
switch (pdrv) {
|
||||
case DEV_SD:
|
||||
return sdio_disk_ioctl(cmd, buff);
|
||||
return sdio_disk_ioctl(cmd, buff);
|
||||
}
|
||||
|
||||
return RES_PARERR;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user