iommu: Delete a duplicate check in iommu_change_dev_def_domain()
Function iommu_group_store_type() is the only caller of the static function iommu_change_dev_def_domain() and has performed "if (WARN_ON(!group))" detection before calling it. So the one here is redundant. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20210513075815.6382-1-thunder.leizhen@huawei.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
7154cbd31c
commit
e86b041ffe
|
@ -3059,9 +3059,6 @@ static int iommu_change_dev_def_domain(struct iommu_group *group,
|
||||||
int ret, dev_def_dom;
|
int ret, dev_def_dom;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
|
||||||
if (!group)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
mutex_lock(&group->mutex);
|
mutex_lock(&group->mutex);
|
||||||
|
|
||||||
if (group->default_domain != group->domain) {
|
if (group->default_domain != group->domain) {
|
||||||
|
|
Loading…
Reference in New Issue