forked from Imagelibrary/rtems
nvdisk: swap arguments to checksum helper
The arguments to rtems_nvdisk_calc_crc16() are reversed when called from rtems_nvdisk_page_checksum(). 26053 Operands don't affect result
This commit is contained in:
@@ -422,7 +422,7 @@ rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < page_size; i++, buffer++)
|
||||
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
|
||||
cs = rtems_nvdisk_calc_crc16 (*buffer, cs);
|
||||
|
||||
return cs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user