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>
void *response, size_t *size_ptr)
{
struct udevice *dev;
void *response, size_t *size_ptr)
{
struct udevice *dev;
uint8_t response_buffer[COMMAND_BUFFER_SIZE];
size_t response_length;
uint8_t response_buffer[COMMAND_BUFFER_SIZE];
size_t response_length;
if (response) {
response_length = *size_ptr;
if (response) {
response_length = *size_ptr;