drm/msm/dpu: replace IS_ERR_OR_NULL with IS_ERR during DSC init
[linux-2.6-microblaze.git] / drivers / gpu / drm / msm / disp / dpu1 / dpu_rm.c
index f0fc704..dffd3dd 100644 (file)
@@ -247,7 +247,7 @@ int dpu_rm_init(struct dpu_rm *rm,
                const struct dpu_dsc_cfg *dsc = &cat->dsc[i];
 
                hw = dpu_hw_dsc_init(dsc, mmio);
-               if (IS_ERR_OR_NULL(hw)) {
+               if (IS_ERR(hw)) {
                        rc = PTR_ERR(hw);
                        DPU_ERROR("failed dsc object creation: err %d\n", rc);
                        goto fail;