summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-06-01 01:18:41 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-12-03 11:00:35 +0000
commit90dc64da322f428b058740a9e1847cf469a3bdea (patch)
tree35ae9a347904f2eb5948fb09228baefcafd375b2
parentb6c2b54e011021c226750620af75cac22ed1e049 (diff)
downloadrockbox-90dc64da32.tar.gz
rockbox-90dc64da32.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.c12
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 @@
/* Used to guess the necessary buffer size at commit. */
#define TAGFILE_ENTRY_AVG_LENGTH 16
-/* Always strict align entries for best performance and binary compatibility. */
-#define TAGCACHE_STRICT_ALIGN 1
-
/* Max events in the internal tagcache command queue. */
#define TAGCACHE_COMMAND_QUEUE_LENGTH 32
@@ -2353,15 +2350,6 @@ static int tempbuf_sort(int fd)
% TAGFILE_ENTRY_CHUNK_LENGTH);
}
-#ifdef TAGCACHE_STRICT_ALIGN
- /* Make sure the entry is long aligned. */
- if (index[i].seek & 0x03)
- {
- logf("tempbuf_sort: alignment error!");
- return -3;
- }
-#endif
-
if (ecwrite(fd, &fe, 1, tagfile_entry_ec, tc_stat.econ) !=
sizeof(struct tagfile_entry))
{