From 9fe953bee1d773bf038f839daf22729796c955b3 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 22 Jun 2025 13:34:42 +0300 Subject: [PATCH] bdk: use f_unmount instead of null f_mount --- bdk/storage/ramdisk.c | 2 +- bdk/storage/sd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bdk/storage/ramdisk.c b/bdk/storage/ramdisk.c index 3a86ebf9..90ebb94c 100644 --- a/bdk/storage/ramdisk.c +++ b/bdk/storage/ramdisk.c @@ -44,7 +44,7 @@ int ram_disk_init(void *ram_fs, u32 ramdisk_size) disk_set_info(DRIVE_RAM, SET_SECTOR_COUNT, &ramdisk_size); // Unmount ramdisk. - f_mount(NULL, "ram:", 1); + f_unmount("ram:"); // Format as exFAT w/ 32KB cluster with no MBR. res = f_mkfs("ram:", FM_EXFAT | FM_SFD, RAMDISK_CLUSTER_SZ, buf, 0x400000); diff --git a/bdk/storage/sd.c b/bdk/storage/sd.c index 3ad31faa..2a61bbda 100644 --- a/bdk/storage/sd.c +++ b/bdk/storage/sd.c @@ -227,7 +227,7 @@ static void _sd_deinit(bool deinit) if (sd_init_done) { if (sd_mounted) - f_mount(NULL, "0:", 1); // Volume 0 is SD. + f_unmount("0:"); // Volume 0 is SD. if (deinit) {