]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tpm: Remove unused locty parameter from tpm_tis_abort()
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 20 Nov 2018 18:06:19 +0000 (13:06 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 3 Dec 2018 16:58:16 +0000 (11:58 -0500)
Remove the unused locty parameter from tpm_tis_abort() function.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/tpm/tpm_tis.c

index d9322692ee6728e3b05757ec46e629c2832ef1e4..176d424ed9c43f105ff8d5c05ca144c20900cfb0 100644 (file)
@@ -233,7 +233,7 @@ static void tpm_tis_new_active_locality(TPMState *s, uint8_t new_active_locty)
 }
 
 /* abort -- this function switches the locality */
-static void tpm_tis_abort(TPMState *s, uint8_t locty)
+static void tpm_tis_abort(TPMState *s)
 {
     s->rw_offset = 0;
 
@@ -281,7 +281,7 @@ static void tpm_tis_prep_abort(TPMState *s, uint8_t locty, uint8_t newlocty)
         }
     }
 
-    tpm_tis_abort(s, locty);
+    tpm_tis_abort(s);
 }
 
 /*
@@ -311,7 +311,7 @@ static void tpm_tis_request_completed(TPMIf *ti, int ret)
     }
 
     if (TPM_TIS_IS_VALID_LOCTY(s->next_locty)) {
-        tpm_tis_abort(s, locty);
+        tpm_tis_abort(s);
     }
 
     tpm_tis_raise_irq(s, locty,