]> www.infradead.org Git - mtd-utils.git/commit
mtd-tests: nandbiterrs: Store the chunks size in an intermediate variable
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Aug 2024 09:46:23 +0000 (11:46 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 8 Oct 2024 06:14:39 +0000 (08:14 +0200)
commit8e64d114e1016ba90bce54dc37d91277f0f2f282
tree3cf437705baa92f9057b7e16a57ceb266bfb7f18
parent7bf7d98cc094f4b0c6e535a7231ce310a9c6e23c
mtd-tests: nandbiterrs: Store the chunks size in an intermediate variable

'pagesize' is used for two purposes:
- accessing the size of a page
- getting the size of the test buffer, which happen to be the size of a
  page for now.
Use an intermediate variable when getting the size of the test buffer,
as we will later increase its size.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/mtd-tests/nandbiterrs.c