summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2013-09-05 14:28:14 -0400
committerGedare Bloom <gedare@rtems.org>2013-09-05 14:28:14 -0400
commit59261fba76ad1488adac05919fbc41915d4b5787 (patch)
treee9c3ea6499b950d8032057254e03bfde3d4c6d89
parent5f040b88294225eab04625274bc6aa3dc68e710d (diff)
downloadrtems-59261fba76ad1488adac05919fbc41915d4b5787.tar.bz2
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
-rw-r--r--cpukit/libblock/src/nvdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libblock/src/nvdisk.c b/cpukit/libblock/src/nvdisk.c
index db971790b6..32a56b330e 100644
--- a/cpukit/libblock/src/nvdisk.c
+++ b/cpukit/libblock/src/nvdisk.c
@@ -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;
}