summaryrefslogtreecommitdiffstats
path: root/libs/NVRam/crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/NVRam/crc.c')
-rw-r--r--libs/NVRam/crc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/NVRam/crc.c b/libs/NVRam/crc.c
index ec4d66e..b2d8f73 100644
--- a/libs/NVRam/crc.c
+++ b/libs/NVRam/crc.c
@@ -2,7 +2,7 @@
///
/// @file crc.c
///
-/// @project
+/// @project
///
/// @brief CRC Support Routines
///
@@ -46,10 +46,9 @@
#define CRC32_POLYNOMIAL 0xEDB88320
-uint32_t NVRam_crc (
- uint8_t *pcDatabuf, // Pointer to data buffer
- uint32_t ulDatalen, // Length of data buffer in bytes
- uint32_t crc) // Initial value
+uint32_t NVRam_crc(uint8_t *pcDatabuf, // Pointer to data buffer
+ uint32_t ulDatalen, // Length of data buffer in bytes
+ uint32_t crc) // Initial value
{
uint8_t data;
uint32_t idx, bit;
@@ -61,5 +60,6 @@ uint32_t NVRam_crc (
crc = (crc >> 1) ^ (((crc ^ data) & 1) ? CRC32_POLYNOMIAL : 0);
}
}
+
return crc;
}
OpenPOWER on IntegriCloud