Remove unneeded cast to struct iommu_domain *.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2020-08-04 20:54:12 +00:00
parent 78b517543b
commit b64dca2b6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363865

View File

@ -111,7 +111,7 @@ void
iommu_gas_free_entry(struct iommu_domain *domain, struct iommu_map_entry *entry)
{
KASSERT(domain == (struct iommu_domain *)entry->domain,
KASSERT(domain == entry->domain,
("mismatched free domain %p entry %p entry->domain %p", domain,
entry, entry->domain));
atomic_subtract_int(&domain->entries_cnt, 1);
@ -174,7 +174,7 @@ iommu_gas_check_free(struct iommu_domain *domain)
iommu_gaddr_t v;
RB_FOREACH(entry, iommu_gas_entries_tree, &domain->rb_root) {
KASSERT(domain == (struct iommu_domain *)entry->domain,
KASSERT(domain == entry->domain,
("mismatched free domain %p entry %p entry->domain %p",
domain, entry, entry->domain));
l = RB_LEFT(entry, rb_entry);