diff options
author | Tom Rini <trini@konsulko.com> | 2017-05-10 22:20:18 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 15:37:40 +0300 |
commit | 667d6856973c725331f70eb9f36fee8897123316 (patch) | |
tree | 0281e35752490a7bd8340baf26f43daccd16790f | |
parent | 758979101d161704dc9c1e42db98a728724f59d0 (diff) | |
download | u-boot-667d6856973c725331f70eb9f36fee8897123316.tar.xz |
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>
-rw-r--r-- | lib/tpm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -230,10 +230,9 @@ static uint32_t tpm_sendrecv_command(const void *command, void *response, size_t *size_ptr) { struct udevice *dev; - int ret; + int err, ret; uint8_t response_buffer[COMMAND_BUFFER_SIZE]; size_t response_length; - uint32_t err; if (response) { response_length = *size_ptr; |