mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 00:51:51 -04:00
drm/msm: Drop unneeded NULL check
This is always set in msm_gpu_init(), and can never be NULL. Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/664431/
This commit is contained in:
@@ -776,7 +776,7 @@ struct msm_mmu *msm_iommu_gpu_new(struct device *dev, struct msm_gpu *gpu, unsig
|
||||
return 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);
|
||||
|
||||
Reference in New Issue
Block a user