The init function ensures that iommu_group_kset can't be NULL. Therefore this check isn't needed.
Signed-off-by: Heiner Kallweit <[email protected]> --- drivers/iommu/iommu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index b36ec9c..b36e24d 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -235,9 +235,6 @@ struct iommu_group *iommu_group_get_by_id(int id) struct iommu_group *group; const char *name; - if (!iommu_group_kset) - return NULL; - name = kasprintf(GFP_KERNEL, "%d", id); if (!name) return NULL; -- 2.9.0 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
