]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/blobdiff - tpm.c
CAN bus Kvaser PCI CAN-S (single SJA1000 channel) emulation added.
[lisovros/qemu_apohw.git] / tpm.c
diff --git a/tpm.c b/tpm.c
index d68d69fe3910a139ebf9789c8d507b719bcfc2c3..c371023b1c1baa68d9417f0ac88074f159e70419 100644 (file)
--- a/tpm.c
+++ b/tpm.c
@@ -161,7 +161,7 @@ static int configure_tpm(QemuOpts *opts)
 
     /* validate backend specific opts */
     qemu_opts_validate(opts, be->opts, &local_err);
-    if (error_is_set(&local_err)) {
+    if (local_err) {
         qerror_report_err(local_err);
         error_free(local_err);
         return 1;