summaryrefslogtreecommitdiff
path: root/sys/dev/vmware/vmci
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:30:01 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:30:01 +0000
commit4eb2ed072bd0789c2eae8ecaec0d580fee419ce7 (patch)
tree84643dcd64cb076cfaf2eadf9366588b67e9b136 /sys/dev/vmware/vmci
parentd63738087ebc42e331a8147c74b690c1f0923f6b (diff)
Notes
Diffstat (limited to 'sys/dev/vmware/vmci')
-rw-r--r--sys/dev/vmware/vmci/vmci_defs.h1
-rw-r--r--sys/dev/vmware/vmci/vmci_doorbell.c1
-rw-r--r--sys/dev/vmware/vmci/vmci_driver.c2
-rw-r--r--sys/dev/vmware/vmci/vmci_event.c1
-rw-r--r--sys/dev/vmware/vmci/vmci_hashtable.c1
-rw-r--r--sys/dev/vmware/vmci/vmci_kernel_if.c1
-rw-r--r--sys/dev/vmware/vmci/vmci_queue_pair.c2
7 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/vmware/vmci/vmci_defs.h b/sys/dev/vmware/vmci/vmci_defs.h
index 94dfe44d1596..81f372ed426d 100644
--- a/sys/dev/vmware/vmci/vmci_defs.h
+++ b/sys/dev/vmware/vmci/vmci_defs.h
@@ -386,7 +386,6 @@ struct vmci_queue_header {
volatile uint64_t consumer_head; /* Offset in peer queue. */
};
-
/*
* If one client of a QueuePair is a 32bit entity, we restrict the QueuePair
* size to be less than 4GB, and use 32bit atomic operations on the head and
diff --git a/sys/dev/vmware/vmci/vmci_doorbell.c b/sys/dev/vmware/vmci/vmci_doorbell.c
index 226c69b8483a..6bccd0fcc646 100644
--- a/sys/dev/vmware/vmci/vmci_doorbell.c
+++ b/sys/dev/vmware/vmci/vmci_doorbell.c
@@ -621,7 +621,6 @@ vmci_doorbell_destroy(struct vmci_handle handle)
result = vmci_doorbell_unlink(handle, entry->is_doorbell);
if (VMCI_SUCCESS != result) {
-
/*
* The only reason this should fail would be an inconsistency
* between guest and hypervisor state, where the guest believes
diff --git a/sys/dev/vmware/vmci/vmci_driver.c b/sys/dev/vmware/vmci/vmci_driver.c
index c742cc46c742..8426731a038a 100644
--- a/sys/dev/vmware/vmci/vmci_driver.c
+++ b/sys/dev/vmware/vmci/vmci_driver.c
@@ -281,10 +281,8 @@ vmci_read_datagrams_from_port(vmci_io_handle io_handle, vmci_io_port dg_in_port,
*/
if (dg_in_size > remaining_bytes) {
-
if (remaining_bytes !=
current_dg_in_buffer_size) {
-
/*
* We move the partial datagram to the
* front and read the reminder of the
diff --git a/sys/dev/vmware/vmci/vmci_event.c b/sys/dev/vmware/vmci/vmci_event.c
index 9a932340a7b6..7f3bf9039e12 100644
--- a/sys/dev/vmware/vmci/vmci_event.c
+++ b/sys/dev/vmware/vmci/vmci_event.c
@@ -104,7 +104,6 @@ vmci_event_exit(void)
for (e = 0; e < VMCI_EVENT_MAX; e++) {
vmci_list_scan_safe(iter, &subscriber_array[e],
subscriber_list_item, iter_2) {
-
/*
* We should never get here because all events should
* have been unregistered before we try to unload the
diff --git a/sys/dev/vmware/vmci/vmci_hashtable.c b/sys/dev/vmware/vmci/vmci_hashtable.c
index c8559b008c10..f5d41bd5069b 100644
--- a/sys/dev/vmware/vmci/vmci_hashtable.c
+++ b/sys/dev/vmware/vmci/vmci_hashtable.c
@@ -368,7 +368,6 @@ vmci_hashtable_release_entry_locked(struct vmci_hashtable *table,
entry->ref_count--;
/* Check if this is last reference and report if so. */
if (entry->ref_count == 0) {
-
/*
* Remove entry from hash table if not already removed. This
* could have happened already because VMCIHashTable_RemoveEntry
diff --git a/sys/dev/vmware/vmci/vmci_kernel_if.c b/sys/dev/vmware/vmci/vmci_kernel_if.c
index 851c4c9df214..e845650873b5 100644
--- a/sys/dev/vmware/vmci/vmci_kernel_if.c
+++ b/sys/dev/vmware/vmci/vmci_kernel_if.c
@@ -615,7 +615,6 @@ vmci_alloc_ppn_set(void *prod_q, uint64_t num_produce_pages, void *cons_q,
if (sizeof(pfn) >
sizeof(*consume_ppns) && pfn != consume_ppns[i])
goto ppn_error;
-
}
ppn_set->num_produce_pages = num_produce_pages;
diff --git a/sys/dev/vmware/vmci/vmci_queue_pair.c b/sys/dev/vmware/vmci/vmci_queue_pair.c
index 65ae00c8d167..2ff963c691d0 100644
--- a/sys/dev/vmware/vmci/vmci_queue_pair.c
+++ b/sys/dev/vmware/vmci/vmci_queue_pair.c
@@ -838,7 +838,6 @@ vmci_queue_pair_detach_guest_work(struct vmci_handle handle)
result = vmci_queue_pair_detach_hypercall(handle);
if (entry->hibernate_failure) {
if (result == VMCI_ERROR_NOT_FOUND) {
-
/*
* If a queue pair detach failed when entering
* hibernation, the guest driver and the device
@@ -856,7 +855,6 @@ vmci_queue_pair_detach_guest_work(struct vmci_handle handle)
}
}
if (result < VMCI_SUCCESS) {
-
/*
* We failed to notify a non-local queuepair. That other
* queuepair might still be accessing the shared