drm/msm/dpu: Remove impossible NULL check

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jessica Zhang <jesszhan@codeaurora.org>
Link: https://lore.kernel.org/r/20211023160016.3322052-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
Rob Clark 2021-10-23 09:00:12 -07:00
parent 409af447c2
commit c6c2fb596b

View File

@ -187,11 +187,6 @@ static int dpu_crtc_get_crc(struct drm_crtc *crtc)
int i = 0;
int rc = 0;
if (!crtc) {
DPU_ERROR("Invalid crtc\n");
return -EINVAL;
}
crtc_state = to_dpu_crtc_state(crtc->state);
crcs = kcalloc(crtc_state->num_mixers, sizeof(*crcs), GFP_KERNEL);