mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
crc-mi4: use const lookup table for crc
This doesn't touch external tools as I see no need for. Change-Id: Ia69248c4b6a033c3772916525257e3540bddcffa Reviewed-on: http://gerrit.rockbox.org/891 Tested: Sebastian Leonhardt <sebastian.leonhardt@web.de> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
This commit is contained in:
parent
d188661d4c
commit
e557951c94
6 changed files with 45 additions and 41 deletions
|
|
@ -207,8 +207,6 @@ int load_mi4(unsigned char* buf,
|
|||
return EREAD_IMAGE_FAILED;
|
||||
|
||||
/* Check CRC32 to see if we have a valid file */
|
||||
chksum_crc32gentab();
|
||||
|
||||
sum = chksum_crc32 (buf, mi4header.mi4size - MI4_HEADER_SIZE);
|
||||
|
||||
if(sum != mi4header.crc32)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue