OSDN Git Service

drm/nouveau: make nouveau_drm_debugfs_init() return 0
authorWambui Karuga <wambui.karugax@gmail.com>
Tue, 10 Mar 2020 13:31:15 +0000 (16:31 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Mar 2020 15:26:58 +0000 (16:26 +0100)
commit0567776b698bb2eec92ab55e603c5af07d0a51d0
treeff4e91180e9e74cf49d7af6761cb21ac1da749ff
parent3a748157f209a79748ee8dd7da82e5db913ffa52
drm/nouveau: make nouveau_drm_debugfs_init() return 0

Since 987d65d01356 (drm: debugfs: make
drm_debugfs_create_files() never fail), there is no need to ever check
for the the return value of debugfs_create_file() and
drm_debugfs_create_files(). Therefore, remove unnecessary checks and
error handling in nouveau_drm_debugfs_init() and have the function
return 0 directly.

v2: have nouveau_drm_debugfs_init() return 0 instead of void so as not
to introduce any build warnings to enable individual patch compilation.

References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html
Signed-off-by: Wambui Karuga <wambui.karugax@gmail.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-12-wambui.karugax@gmail.com
drivers/gpu/drm/nouveau/nouveau_debugfs.c