public inbox for linux-arm-msm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] drm/msm/dpu: Remove impossible NULL check
@ 2021-10-23 16:00 Rob Clark
  2021-10-23 16:00 ` [PATCH v2 2/2] drm/msm/dpu: Remove dynamic allocation from atomic context Rob Clark
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Clark @ 2021-10-23 16:00 UTC (permalink / raw)
  To: dri-devel
  Cc: freedreno, linux-arm-msm, Rob Clark, Jessica Zhang, Rob Clark,
	Sean Paul, David Airlie, Daniel Vetter, Thomas Zimmermann,
	Maxime Ripard, Dmitry Baryshkov, Abhinav Kumar,
	Krishna Manikandan, Kalyan Thota, Stephen Boyd, Mark Yacoub,
	open list

From: Rob Clark <robdclark@chromium.org>

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jessica Zhang <jesszhan@codeaurora.org>
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 5 -----
 1 file changed, 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);
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-25 18:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-23 16:00 [PATCH v2 1/2] drm/msm/dpu: Remove impossible NULL check Rob Clark
2021-10-23 16:00 ` [PATCH v2 2/2] drm/msm/dpu: Remove dynamic allocation from atomic context Rob Clark
2021-10-25 18:41   ` Jessica Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox