Searched hist:f97a5a7d32eb1b5a8eedb973fee28a03838f8833 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/ |
| H A D | cfi_flash.c | f97a5a7d32eb1b5a8eedb973fee28a03838f8833 Fri Jan 26 13:43:49 UTC 2018 Mario Six <mario.six@gdsys.cc> UPSTREAM: cfi_flash: Use u8 pointers instead of void pointers
According to the C standard, pointer arithmetic for pointers of type void is undefined behavior (the assumption that they're 8-bit wide is a GCC-specific assumption). In the interest of keeping the code standards-compliant, and also better communicate intent, switch all void* variables where pointer arithmetic is used to u8* variables.
Change-Id: Ie87afb412bb440dbbe374d65680ca1cf2467e02e Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit 5312838dd5b3959907d6c4f0ec3e04954210fafc)
|