]> git.sur5r.net Git - u-boot/commit
tpm: report driver error code to upper layer
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 15 May 2018 09:57:11 +0000 (11:57 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 26 May 2018 00:12:56 +0000 (20:12 -0400)
commitbcdf6b9f26fe9cd452f5f309a6e410ea4513e60b
tree688e07eb8852ea49073c869aeeb66b67d529beb5
parentaa643013e47b3527b819d1bbdfd1eb679daf5f27
tpm: report driver error code to upper layer

Instead of returning a generic 'library' error, report back the actual
error code so it can be displayed to the user by the regular error path.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
lib/tpm-common.c