flashdisk: swap arguments to checksum helper

The arguments to rtems_fdisk_calc_crc16() are reversed when called from
rtems_fdisk_page_checksum().

26052 Operands don't affect result
This commit is contained in:
Gedare Bloom
2013-09-05 14:31:14 -04:00
parent 59261fba76
commit 74d357513f

View File

@@ -1057,7 +1057,7 @@ rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_fdisk_calc_crc16 (cs, *buffer);
cs = rtems_fdisk_calc_crc16 (*buffer, cs);
return cs;
}