aboutsummaryrefslogtreecommitdiff
path: root/backends/tpm
diff options
context:
space:
mode:
Diffstat (limited to 'backends/tpm')
-rw-r--r--backends/tpm/tpm_util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/tpm/tpm_util.c b/backends/tpm/tpm_util.c
index cfc7572..971f3af 100644
--- a/backends/tpm/tpm_util.c
+++ b/backends/tpm/tpm_util.c
@@ -58,8 +58,7 @@ static void set_tpm(Object *obj, Visitor *v, const char *name, void *opaque,
return;
}
- visit_type_str(v, name, &str, &local_err);
- if (local_err) {
+ if (!visit_type_str(v, name, &str, &local_err)) {
error_propagate(errp, local_err);
return;
}