]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mtd: imagetag: remove unused imagestart variable 23546/head
authorAnna Kiri <bredcorn@gmail.com>
Tue, 26 May 2026 17:10:36 +0000 (19:10 +0200)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 2 Jun 2026 19:32:27 +0000 (21:32 +0200)
commit2b4e46345f5e1fbf90167d9bb13c4d97c7c2fbdf
tree68fce1ea2f22856d14a0ee8ecc186a0ece67027d
parentd0520b880d5bb5273993e151c6fcc891c86efe0b
mtd: imagetag: remove unused imagestart variable

The imagestart variable was assigned sizeof(tag) (which incorrectly
computed the pointer size rather than the struct size), but was never
actually read after the assignment in either trx_fixup() or
mtd_fixtrx(). The CRC calculations that follow use
offsetof(struct bcm_tag, header_crc) directly.

Remove the dead variable and its assignments entirely rather than fixing
the sizeof expression. No functional change.

Signed-off-by: Anna Kiri <bredcorn@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23546
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
package/system/mtd/src/imagetag.c