]> git.ipfire.org Git - people/ms/u-boot.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)
commit667d6856973c725331f70eb9f36fee8897123316
tree0281e35752490a7bd8340baf26f43daccd16790f
parent758979101d161704dc9c1e42db98a728724f59d0
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