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

From: Rob Clark <robdclark@chromium.org>

Signed-off-by: Rob Clark <robdclark@chromium.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] 5+ messages in thread

end of thread, other threads:[~2021-10-23 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 17:20 [PATCH 1/2] drm/msm/dpu: Remove impossible NULL check Rob Clark
2021-10-22 17:20 ` [PATCH 2/2] drm/msm/dpu: Remove dynamic allocation from atomic context Rob Clark
2021-10-22 19:14   ` Jessica Zhang
2021-10-23 15:59     ` Rob Clark
2021-10-22 19:13 ` [PATCH 1/2] drm/msm/dpu: Remove impossible NULL check Jessica Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).