tpm: tis: move one-line function into caller
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 2 Feb 2018 13:39:18 +0000 (08:39 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Sat, 3 Feb 2018 14:01:56 +0000 (09:01 -0500)
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/tpm/tpm_tis.c

index 08f41d27075c90da0dcc1cff373a3b1d52aed163..f81168a7e3ef576fc9b84332d63557273b21aaf8 100644 (file)
@@ -946,11 +946,6 @@ static const MemoryRegionOps tpm_tis_memory_ops = {
     },
 };
 
-static int tpm_tis_do_startup_tpm(TPMState *s, size_t buffersize)
-{
-    return tpm_backend_startup_tpm(s->be_driver, buffersize);
-}
-
 /*
  * Get the TPMVersion of the backend device being used
  */
@@ -1005,7 +1000,7 @@ static void tpm_tis_reset(DeviceState *dev)
         s->rw_offset = 0;
     }
 
-    tpm_tis_do_startup_tpm(s, s->be_buffer_size);
+    tpm_backend_startup_tpm(s->be_driver, s->be_buffer_size);
 }
 
 static const VMStateDescription vmstate_tpm_tis = {