mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 11:23:09 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user