Files
u-boot/drivers
Bin Meng ed5df0852f nand: atmel: Initialize pmecc smu with correct size
Currently in pmecc_get_sigma(), the code tries to clear the memory
pointed by smu with wrong size 'sizeof(int16_t) * ARRAY_SIZE(smu)'.
Since smu is actually a pointer, not an array, so ARRAY_SIZE(smu)
does not generate correct size to be cleared.

In fact, GCC 8.1.0 reports a warning against it:

error: division 'sizeof (int16_t * {aka short int *}) / sizeof (int16_t
{aka short int})' does not compute the number of array elements
[-Werror=sizeof-pointer-div]

Fix it by using the correct size.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
2018-10-22 09:18:49 -04:00
..
2018-08-03 19:53:10 -04:00
2018-10-09 04:40:27 -06:00
2018-09-29 11:49:35 -06:00
2018-09-18 08:12:21 -06:00
2018-10-03 12:56:13 +02:00
2018-09-18 00:01:18 -06:00
2018-07-19 16:31:38 -04:00
2018-10-07 11:04:01 -04:00
2018-09-18 00:01:18 -06:00
2018-10-09 04:40:27 -06:00
2018-09-28 20:22:36 -04:00