]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: Fix comparison of unsigned expression warning
authorTom Rini <trini@konsulko.com>
Wed, 10 May 2017 19:20:18 +0000 (15:20 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 12 May 2017 12:37:40 +0000 (08:37 -0400)
commit3dec3a2b43b87e7a04d9894b1a4e1ed6b6b9b554
tree0281e35752490a7bd8340baf26f43daccd16790f
parent6b54a288170b79dc8b63b422982ef53ac6b5e6af
tpm: Fix comparison of unsigned expression warning

The function tpm_xfer returns int so make 'err' be int rather than
uint32_t so that we can catch an error condition.  Reported by
clang-3.8.

Signed-off-by: Tom Rini <trini@konsulko.com>
lib/tpm.c