summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-11-02 14:47:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-11-02 14:48:54 -0400
commit4be628544418641add9f8efd44a6b7cf1ed916bc (patch)
treeed68040765f459a250c660c6888310f7dd73d781
parent04dc052a96d2f43ce4e96c1c768bb6043a47f680 (diff)
downloadrockbox-4be6285444.tar.gz
rockbox-4be6285444.zip
disk: MAX_LOG_SECTOR_SIZE also applies to a few non-ATA targets
Fuze+, native Sonys, and some of the Zens use 2K sectoring from the partition/filesystem perspective, even though the underlying storage used 512-byte sectoring. Change-Id: I247d8cae2582c63ec1d4dda0fb225b1a25c8e16a
-rw-r--r--firmware/common/disk.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c
index 9c78411957..958f09755a 100644
--- a/firmware/common/disk.c
+++ b/firmware/common/disk.c
@@ -111,10 +111,6 @@ static void init_volume(struct volumeinfo *vi, int drive, int part)
}
#ifdef MAX_LOG_SECTOR_SIZE
-#if !(CONFIG_STORAGE & STORAGE_ATA)
-#error "MAX_LOG_SECTOR_SIZE only supported for STORAGE_ATA"
-#endif
-
static uint16_t disk_sector_multiplier[NUM_DRIVES] =
{ [0 ... NUM_DRIVES-1] = 1 };