Skip to content

Commit f1c1a1f

Browse files
wambu-idanvet
authored andcommitted
drm/tilcdc: remove check for return value of debugfs functions.
Since 987d65d (drm: debugfs: make drm_debugfs_create_files() never fail), drm_debugfs_create_files() never fails. Therefore, remove the check and error handling of the return value of drm_debugfs_create_files() as it is not needed in tilcdc_debugfs_init(). Also remove local variables that are not used after the changes. v2: remove conversion of tilcdc_debugfs_init() to void to avoid build breakage and enable individual compilation. References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Acked-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200310133121.27913-3-wambui.karugax@gmail.com
1 parent ad6d94f commit f1c1a1f

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

‎drivers/gpu/drm/tilcdc/tilcdc_drv.c‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -480,24 +480,17 @@ static struct drm_info_list tilcdc_debugfs_list[] = {
480480

481481
static int tilcdc_debugfs_init(struct drm_minor *minor)
482482
{
483-
struct drm_device *dev = minor->dev;
484483
struct tilcdc_module *mod;
485-
int ret;
486484

487-
ret = drm_debugfs_create_files(tilcdc_debugfs_list,
488-
ARRAY_SIZE(tilcdc_debugfs_list),
489-
minor->debugfs_root, minor);
485+
drm_debugfs_create_files(tilcdc_debugfs_list,
486+
ARRAY_SIZE(tilcdc_debugfs_list),
487+
minor->debugfs_root, minor);
490488

491489
list_for_each_entry(mod, &module_list, list)
492490
if (mod->funcs->debugfs_init)
493491
mod->funcs->debugfs_init(mod, minor);
494492

495-
if (ret) {
496-
dev_err(dev->dev, "could not install tilcdc_debugfs_list\n");
497-
return ret;
498-
}
499-
500-
return ret;
493+
return 0;
501494
}
502495
#endif
503496

0 commit comments

Comments
 (0)