drm/msm: Drop unneeded NULL check
Rob Clark
maintainerPATCH 1/1 drm/msm: Drop unneeded NULL check
This is always set in msm_gpu_init(), and can never be NULL.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Rob Clark <[email protected]>
--- drivers/gpu/drm/msm/msm_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_iommu.c +1 -1
@@ -768,7 +768,7 @@ struct msm_mmu *msm_iommu_gpu_new(struct device *dev, struct msm_gpu *gpu, unsigreturn mmu; iommu =to_msm_iommu (mmu); -if (adreno_smmu && adreno_smmu->cookie) { +if (adreno_smmu->cookie) {const struct io_pgtable_cfg *cfg = adreno_smmu->get_ttbr1_cfg (adreno_smmu->cookie);size_t tblsz =get_tblsz (cfg);
Signature · 1 line
2.50.1
Quoted 8 lines · Rob Clark
This is always set in
msm_gpu_init(), and can never be NULL.Reported-by Dan Carpenter <[email protected]>Signed-off-by Rob Clark <[email protected]>--- drivers/gpu/drm/msm/msm_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry