summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-11-07 07:50:42 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-11-07 07:51:14 -0500
commit9e709911745f370c5bfd2415c52df5143571a13d (patch)
tree1babfc92da8714188c2e4c417f3d51a1b4d3917c
parentf58fad943e40722d1676b3ac0e9d6f9ef665fa02 (diff)
downloadrockbox-9e70991174.tar.gz
rockbox-9e70991174.zip
disk: Simplify LOG_SECTOR_SIZE() definition
Change-Id: I49cca4fe5e92f7b443427c2b8e95bae8955b9ea0
-rw-r--r--firmware/common/disk.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c
index f016a7c196..6aadf8a950 100644
--- a/firmware/common/disk.c
+++ b/firmware/common/disk.c
@@ -139,11 +139,7 @@ int disk_get_log_sector_size(IF_MD_NONVOID(int drive))
disk_reader_unlock();
return size;
}
-#ifdef HAVE_MULTIDRIVE
-#define LOG_SECTOR_SIZE(__drive) disk_log_sector_size[__drive]
-#else
-#define LOG_SECTOR_SIZE(__drive) disk_log_sector_size[0]
-#endif /* HAVE_MULTIDRIVE */
+#define LOG_SECTOR_SIZE(__drive) disk_log_sector_size[IF_MD_DRV(__drive)]
#else /* !STORAGE_ATA */
#define LOG_SECTOR_SIZE(__drive) SECTOR_SIZE
int disk_get_log_sector_size(IF_MD_NONVOID(int drive))