File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -720,21 +720,14 @@ static void iommu_enable_ppr_log(struct amd_iommu *iommu)
720
720
721
721
static void __init free_ppr_log (struct amd_iommu * iommu )
722
722
{
723
- if (iommu -> ppr_log == NULL )
724
- return ;
725
-
726
723
free_pages ((unsigned long )iommu -> ppr_log , get_order (PPR_LOG_SIZE ));
727
724
}
728
725
729
726
static void free_ga_log (struct amd_iommu * iommu )
730
727
{
731
728
#ifdef CONFIG_IRQ_REMAP
732
- if (iommu -> ga_log )
733
- free_pages ((unsigned long )iommu -> ga_log ,
734
- get_order (GA_LOG_SIZE ));
735
- if (iommu -> ga_log_tail )
736
- free_pages ((unsigned long )iommu -> ga_log_tail ,
737
- get_order (8 ));
729
+ free_pages ((unsigned long )iommu -> ga_log , get_order (GA_LOG_SIZE ));
730
+ free_pages ((unsigned long )iommu -> ga_log_tail , get_order (8 ));
738
731
#endif
739
732
}
740
733
You can’t perform that action at this time.
0 commit comments