]> git.sur5r.net Git - u-boot/blobdiff - lib/tpm.c
lib: move hash CONFIG options to Kconfig
[u-boot] / lib / tpm.c
index cd7f88f2204e9119f0b24b6a7b98cdd1e441a193..fb520e3d733ca4bfe813efd34827adaae283a2ec 100644 (file)
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -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;