diff mbox series

[1/2] tpm: Remove unused locty parameter from tpm_tis_abort()

Message ID 20181120182721.227114-2-stefanb@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show
Series tpm: Cleanup and locality range check | expand

Commit Message

Stefan Berger Nov. 20, 2018, 6:27 p.m. UTC
Remove the unused locty parameter from tpm_tis_abort() function.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 hw/tpm/tpm_tis.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Philippe Mathieu-Daudé Nov. 20, 2018, 8:10 p.m. UTC | #1
On 20/11/18 19:27, Stefan Berger wrote:
> 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 | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
> index d9322692ee..176d424ed9 100644
> --- a/hw/tpm/tpm_tis.c
> +++ b/hw/tpm/tpm_tis.c
> @@ -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,
>
diff mbox series

Patch

diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index d9322692ee..176d424ed9 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -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,