ref: c8ca698ba9f650dda21b022918033a0c625b27c4
parent: 88853b3b965f6b03cb9a392feabded9ddd8323cc
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Fri Oct 23 18:24:01 EDT 2015
Refining the use of cast.
--- a/lwext4/ext4_fs.c
+++ b/lwext4/ext4_fs.c
@@ -572,10 +572,10 @@
/* First calculate crc32 checksum against fs uuid */
checksum = ext4_crc32c(~0, sb->uuid, sizeof(sb->uuid));
/* Then calculate crc32 checksum against bgid */
- checksum = ext4_crc32c(checksum, (uint8_t *)&le32_bgid,
+ checksum = ext4_crc32c(checksum, &le32_bgid,
sizeof(bgid));
/* Finally calculate crc32 checksum against block_group_desc */
- checksum = ext4_crc32c(checksum, (uint8_t *)bg,
+ checksum = ext4_crc32c(checksum, bg,
ext4_sb_get_desc_size(sb));
bg->checksum = orig_checksum;