]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: sunxi: sunxi_nand_ooblayout_free code clarification
authorRichard Genoud <richard.genoud@bootlin.com>
Tue, 17 Mar 2026 14:24:29 +0000 (15:24 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Mar 2026 14:27:29 +0000 (15:27 +0100)
commit87f9c59f896fd46d45be76d8a8286a6916ce1f1a
treee4a73990476a7490b2a70008a7952199c14e4271
parentee78d466db8a001d137d6f9c97010b343aee456b
mtd: rawnand: sunxi: sunxi_nand_ooblayout_free code clarification

The available length is really USER_DATA_LEN - 2 instead of just 2 (the
user data length minus the BBM length)
USER_DATA_LEN being 4, that doesn't change anything now, but if
USER_DATA_LEN changes, it will.

Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sunxi_nand.c