1
1
openwrt/package/system/mtd
Anna Kiri 2b4e46345f
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>
2026-06-02 21:32:27 +02:00
..
src mtd: imagetag: remove unused imagestart variable 2026-06-02 21:32:27 +02:00
Makefile mtd: allow to use dump and verify on read-only devices 2025-11-25 00:43:23 +01:00