Author: br
Date: Tue Aug  4 20:54:12 2020
New Revision: 363865
URL: https://svnweb.freebsd.org/changeset/base/363865

Log:
  Remove unneeded cast to struct iommu_domain *.
  
  Sponsored by: DARPA, AFRL

Modified:
  head/sys/dev/iommu/iommu_gas.c

Modified: head/sys/dev/iommu/iommu_gas.c
==============================================================================
--- head/sys/dev/iommu/iommu_gas.c      Tue Aug  4 20:51:05 2020        
(r363864)
+++ head/sys/dev/iommu/iommu_gas.c      Tue Aug  4 20:54:12 2020        
(r363865)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to