summary refs log tree commit diff stats
path: root/hw/tpm
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2025-04-07 10:26:42 +0200
committerMarkus Armbruster <armbru@redhat.com>2025-04-24 09:33:42 +0200
commit8a2b516ba2855c4530388051de2b8d17bc780ea8 (patch)
tree1303019c401f96062ce5a35d591ba993d1b79a16 /hw/tpm
parent720a0e417ef0814d90aa884096a643b02ee854dc (diff)
downloadfocaccia-qemu-8a2b516ba2855c4530388051de2b8d17bc780ea8.tar.gz
focaccia-qemu-8a2b516ba2855c4530388051de2b8d17bc780ea8.zip
cleanup: Drop pointless return at end of function
A few functions now end with a label.  The next commit will clean them
up.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250407082643.2310002-3-armbru@redhat.com>
[Straightforward conflict with commit 988ad4ccebb6 (hw/loongarch/virt:
Fix cpuslot::cpu set at last in virt_cpu_plug()) resolved]
Diffstat (limited to 'hw/tpm')
-rw-r--r--hw/tpm/tpm_tis_i2c.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/tpm/tpm_tis_i2c.c b/hw/tpm/tpm_tis_i2c.c
index 504328e3b0..92d3de1ea3 100644
--- a/hw/tpm/tpm_tis_i2c.c
+++ b/hw/tpm/tpm_tis_i2c.c
@@ -211,8 +211,6 @@ static inline void tpm_tis_i2c_clear_data(TPMStateI2C *i2cst)
     i2cst->tis_addr = 0xffffffff;
     i2cst->reg_name = NULL;
     memset(i2cst->data, 0, sizeof(i2cst->data));
-
-    return;
 }
 
 /* Send data to TPM */
@@ -281,8 +279,6 @@ static inline void tpm_tis_i2c_tpm_send(TPMStateI2C *i2cst)
 
         tpm_tis_i2c_clear_data(i2cst);
     }
-
-    return;
 }
 
 /* Callback from TPM to indicate that response is copied */