diff options
author | Rob Clark <[email protected]> | 2021-10-23 09:00:12 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2021-10-23 09:11:53 -0700 |
commit | c6c2fb596b29bb5b667f1c5e7d9400a3456b23b2 (patch) | |
tree | 68b8b9c8ac19534a5a413504f4670df8a2f1257d | |
parent | 409af447c2a0a6e08ba190993a1153c91d3b11bd (diff) |
drm/msm/dpu: Remove impossible NULL check
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Jessica Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index e91568d4f09a..0ae397044310 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -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); |