style: lib: crc: comply with MISRA C:2012 Rule 15.6
Add missing braces to comply with MISRA C:2012 Rule 15.6 and also following Zephyr's style guideline. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
parent
ef639efb38
commit
57b5f7193b
1 changed files with 2 additions and 1 deletions
|
|
@ -22,8 +22,9 @@ uint32_t crc24_pgp_update(uint32_t crc, const uint8_t *data, size_t len)
|
|||
crc ^= (*data++) << 16;
|
||||
for (i = 0; i < 8; i++) {
|
||||
crc <<= 1;
|
||||
if (crc & 0x01000000)
|
||||
if (crc & 0x01000000) {
|
||||
crc ^= CRC24_PGP_POLY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue