Cache the offset of crc
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 20 Dec 2011 13:41:19 +0000 (11:41 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 20 Dec 2011 13:41:19 +0000 (11:41 -0200)
commit51c409b449a82283515e7c3fa5a4a0e2f23807fe
tree332f818b00bf68f74b3cb5361095000c2beba829
parent58b7191c945918f85d5f41ea591111f741ad3a75
Cache the offset of crc

This way we don't need to check every time in loop. Indeed compiler
could already optimize out that checks, but this ways is cleaner and
shorter.
libkmod/libkmod-elf.c