* [PATCH] drm/tilcdc: remove check for return value of debugfs functions. [not found] <20200218155534.15504-1-wambui.karugax@gmail.com> @ 2020-02-18 15:55 ` Wambui Karuga 2020-02-27 10:56 ` Jyri Sarha 0 siblings, 1 reply; 2+ messages in thread From: Wambui Karuga @ 2020-02-18 15:55 UTC (permalink / raw) To: jsarha, tomi.valkeinen, airlied, daniel; +Cc: dri-devel, linux-kernel, gregkh 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. Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 0791a0200cc3..3f7071eb9c78 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -480,24 +480,17 @@ static struct drm_info_list tilcdc_debugfs_list[] = { static int tilcdc_debugfs_init(struct drm_minor *minor) { - struct drm_device *dev = minor->dev; struct tilcdc_module *mod; - int ret; - ret = drm_debugfs_create_files(tilcdc_debugfs_list, - ARRAY_SIZE(tilcdc_debugfs_list), - minor->debugfs_root, minor); + drm_debugfs_create_files(tilcdc_debugfs_list, + ARRAY_SIZE(tilcdc_debugfs_list), + minor->debugfs_root, minor); list_for_each_entry(mod, &module_list, list) if (mod->funcs->debugfs_init) mod->funcs->debugfs_init(mod, minor); - if (ret) { - dev_err(dev->dev, "could not install tilcdc_debugfs_list\n"); - return ret; - } - - return ret; + return 0; } #endif -- 2.17.1 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/tilcdc: remove check for return value of debugfs functions. 2020-02-18 15:55 ` [PATCH] drm/tilcdc: remove check for return value of debugfs functions Wambui Karuga @ 2020-02-27 10:56 ` Jyri Sarha 0 siblings, 0 replies; 2+ messages in thread From: Jyri Sarha @ 2020-02-27 10:56 UTC (permalink / raw) To: Wambui Karuga, tomi.valkeinen, airlied, daniel Cc: dri-devel, linux-kernel, gregkh On 18/02/2020 17:55, Wambui Karuga wrote: > 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. > > Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Reviewed-by: Jyri Sarha <jsarha@ti.com> Tested-by: Jyri Sarha <jsarha@ti.com> I'll merge this to drm-misc-next tomorrow. Thank you for the patch, Jyri > --- > drivers/gpu/drm/tilcdc/tilcdc_drv.c | 15 ++++----------- > 1 file changed, 4 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c > index 0791a0200cc3..3f7071eb9c78 100644 > --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c > +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c > @@ -480,24 +480,17 @@ static struct drm_info_list tilcdc_debugfs_list[] = { > > static int tilcdc_debugfs_init(struct drm_minor *minor) > { > - struct drm_device *dev = minor->dev; > struct tilcdc_module *mod; > - int ret; > > - ret = drm_debugfs_create_files(tilcdc_debugfs_list, > - ARRAY_SIZE(tilcdc_debugfs_list), > - minor->debugfs_root, minor); > + drm_debugfs_create_files(tilcdc_debugfs_list, > + ARRAY_SIZE(tilcdc_debugfs_list), > + minor->debugfs_root, minor); > > list_for_each_entry(mod, &module_list, list) > if (mod->funcs->debugfs_init) > mod->funcs->debugfs_init(mod, minor); > > - if (ret) { > - dev_err(dev->dev, "could not install tilcdc_debugfs_list\n"); > - return ret; > - } > - > - return ret; > + return 0; > } > #endif > > -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-27 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200218155534.15504-1-wambui.karugax@gmail.com>
2020-02-18 15:55 ` [PATCH] drm/tilcdc: remove check for return value of debugfs functions Wambui Karuga
2020-02-27 10:56 ` Jyri Sarha
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®