Date: Tue, 4 Aug 2020 20:54:12 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r363865 - head/sys/dev/iommu Message-ID: <202008042054.074KsCLL047093@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008042054.074KsCLL047093>