projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: net_utils: enforce '.' as octet separator in string_to_ip
[platform/kernel/u-boot.git]
/
cmd
/
tpm.c
diff --git
a/cmd/tpm.c
b/cmd/tpm.c
index
6edf3e9
..
312503f
100644
(file)
--- a/
cmd/tpm.c
+++ b/
cmd/tpm.c
@@
-447,8
+447,8
@@
static int get_tpm(struct udevice **devp)
{
int rc;
- rc = uclass_first_device(UCLASS_TPM, devp);
- if (rc
|| !*devp
) {
+ rc = uclass_first_device
_err
(UCLASS_TPM, devp);
+ if (rc) {
printf("Could not find TPM (ret=%d)\n", rc);
return CMD_RET_FAILURE;
}