From: Kory Maincent (TI.com) Date: Fri, 23 Jan 2026 16:12:27 +0000 (+0100) Subject: drm/tilcdc: Remove redundant #endif/#ifdef in debugfs code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da4837fb7513db5da6be7fd32e8d8efe8bff673b;p=thirdparty%2Fkernel%2Flinux.git drm/tilcdc: Remove redundant #endif/#ifdef in debugfs code Remove the unnecessary #endif/#ifdef CONFIG_DEBUG_FS pair that splits the debugfs code section. This keeps all debugfs-related code within a single preprocessor conditional block, improving code readability. Reviewed-by: Luca Ceresoli Signed-off-by: Kory Maincent (TI.com) Link: https://patch.msgid.link/20260123-feature_tilcdc-v5-9-5a44d2aa3f6f@bootlin.com Signed-off-by: Luca Ceresoli --- diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index f865c131dae66..fd6764ce80afa 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -429,9 +429,6 @@ static const struct { #undef REG }; -#endif - -#ifdef CONFIG_DEBUG_FS static int tilcdc_regs_show(struct seq_file *m, void *arg) { struct drm_info_node *node = (struct drm_info_node *) m->private;