git: 0768536d19c7 - main - vmci: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:04:02 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0768536d19c77c06c4f96d9b31ff5ee0326d3066 commit 0768536d19c77c06c4f96d9b31ff5ee0326d3066 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:29 +0000 vmci: Remove unused variables. --- sys/dev/vmware/vmci/vmci_doorbell.c | 4 ---- sys/dev/vmware/vmci/vmci_qpair.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/sys/dev/vmware/vmci/vmci_doorbell.c b/sys/dev/vmware/vmci/vmci_doorbell.c index 6bccd0fcc646..746fc91f1507 100644 --- a/sys/dev/vmware/vmci/vmci_doorbell.c +++ b/sys/dev/vmware/vmci/vmci_doorbell.c @@ -717,14 +717,10 @@ vmci_doorbell_notify_as_guest(struct vmci_handle handle, int vmci_doorbell_notify(struct vmci_handle dst, vmci_privilege_flags priv_flags) { - struct vmci_handle src; - if (VMCI_HANDLE_INVALID(dst) || (priv_flags & ~VMCI_PRIVILEGE_ALL_FLAGS)) return (VMCI_ERROR_INVALID_ARGS); - src = VMCI_INVALID_HANDLE; - return (vmci_doorbell_notify_as_guest(dst, priv_flags)); } diff --git a/sys/dev/vmware/vmci/vmci_qpair.c b/sys/dev/vmware/vmci/vmci_qpair.c index acaef7256f5d..336dc9eb342b 100644 --- a/sys/dev/vmware/vmci/vmci_qpair.c +++ b/sys/dev/vmware/vmci/vmci_qpair.c @@ -148,8 +148,6 @@ vmci_qpair_alloc(struct vmci_qpair **qpair, struct vmci_handle *handle, uint32_t flags, vmci_privilege_flags priv_flags) { struct vmci_qpair *my_qpair; - vmci_event_release_cb wakeup_cb; - void *client_data; int retval; /* @@ -182,9 +180,6 @@ vmci_qpair_alloc(struct vmci_qpair **qpair, struct vmci_handle *handle, my_qpair->flags = flags; my_qpair->priv_flags = priv_flags; - client_data = NULL; - wakeup_cb = NULL; - retval = vmci_queue_pair_alloc(handle, &my_qpair->produce_q, my_qpair->produce_q_size, &my_qpair->consume_q, my_qpair->consume_q_size, my_qpair->peer, my_qpair->flags,