diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-06-01 01:18:41 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-03 11:00:35 +0000 |
commit | 90dc64da322f428b058740a9e1847cf469a3bdea (patch) | |
tree | 35ae9a347904f2eb5948fb09228baefcafd375b2 | |
parent | b6c2b54e011021c226750620af75cac22ed1e049 (diff) | |
download | rockbox-90dc64da322f428b058740a9e1847cf469a3bdea.tar.gz rockbox-90dc64da322f428b058740a9e1847cf469a3bdea.zip |
tagcache: remove TAGCACHE_STRICT_ALIGN flag
This has been defined to 1 since forever, so the last remaining
check presumably isn't catching anything.
Change-Id: I0b60f831a6e5e8fc45788e7581fccb0cb62bce73
-rw-r--r-- | apps/tagcache.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index bab450ffed..b9960f2ad0 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -117,9 +117,6 @@ | |||
117 | /* Used to guess the necessary buffer size at commit. */ | 117 | /* Used to guess the necessary buffer size at commit. */ |
118 | #define TAGFILE_ENTRY_AVG_LENGTH 16 | 118 | #define TAGFILE_ENTRY_AVG_LENGTH 16 |
119 | 119 | ||
120 | /* Always strict align entries for best performance and binary compatibility. */ | ||
121 | #define TAGCACHE_STRICT_ALIGN 1 | ||
122 | |||
123 | /* Max events in the internal tagcache command queue. */ | 120 | /* Max events in the internal tagcache command queue. */ |
124 | #define TAGCACHE_COMMAND_QUEUE_LENGTH 32 | 121 | #define TAGCACHE_COMMAND_QUEUE_LENGTH 32 |
125 | 122 | ||
@@ -2353,15 +2350,6 @@ static int tempbuf_sort(int fd) | |||
2353 | % TAGFILE_ENTRY_CHUNK_LENGTH); | 2350 | % TAGFILE_ENTRY_CHUNK_LENGTH); |
2354 | } | 2351 | } |
2355 | 2352 | ||
2356 | #ifdef TAGCACHE_STRICT_ALIGN | ||
2357 | /* Make sure the entry is long aligned. */ | ||
2358 | if (index[i].seek & 0x03) | ||
2359 | { | ||
2360 | logf("tempbuf_sort: alignment error!"); | ||
2361 | return -3; | ||
2362 | } | ||
2363 | #endif | ||
2364 | |||
2365 | if (ecwrite(fd, &fe, 1, tagfile_entry_ec, tc_stat.econ) != | 2353 | if (ecwrite(fd, &fe, 1, tagfile_entry_ec, tc_stat.econ) != |
2366 | sizeof(struct tagfile_entry)) | 2354 | sizeof(struct tagfile_entry)) |
2367 | { | 2355 | { |