mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
tpm-backend: Remove unneeded member variable from backend class
TPMDriverOps inside TPMBackend is not required, as it is supposed to be a class member. The only possible reason for keeping in TPMBackend was, to get the backend type in tpm.c where dedicated backend api, tpm_backend_get_type() is present. Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
98979cdca4
commit
fb4b0c6765
3 changed files with 1 additions and 6 deletions
|
@ -46,8 +46,6 @@
|
|||
#define TPM_PASSTHROUGH(obj) \
|
||||
OBJECT_CHECK(TPMPassthruState, (obj), TYPE_TPM_PASSTHROUGH)
|
||||
|
||||
static const TPMDriverOps tpm_passthrough_driver;
|
||||
|
||||
/* data structures */
|
||||
typedef struct TPMPassthruThreadParams {
|
||||
TPMState *tpm_state;
|
||||
|
@ -462,8 +460,6 @@ static TPMBackend *tpm_passthrough_create(QemuOpts *opts, const char *id)
|
|||
/* let frontend set the fe_model to proper value */
|
||||
tb->fe_model = -1;
|
||||
|
||||
tb->ops = &tpm_passthrough_driver;
|
||||
|
||||
if (tpm_passthrough_handle_device_opts(opts, tb)) {
|
||||
goto err_exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue