From: David B. <dc...@ho...> - 2013-11-19 19:30:02
|
hello there, I recently ran the static analyser "cppcheck" over the source code of tboot-1.7.3 It said [common/hash.c:137] -> [common/hash.c:137]: (style) Same expression on both sides of '||'. Source code is void copy_hash(tb_hash_t *dest_hash, const tb_hash_t *src_hash, uint8_t hash_alg) { if ( dest_hash == NULL || dest_hash == NULL ) { printk(TBOOT_WARN"hashes are NULL\n"); return; } Suggest change the second mention of dest_hash to src_hash Regards David Binderman |