drm/debugfs: remove checks for return value of drm_debugfs functions.
authorWambui Karuga <wambui.karugax@gmail.com>
Tue, 10 Mar 2020 13:31:20 +0000 (16:31 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Mar 2020 16:32:20 +0000 (17:32 +0100)
commita212d6a55765e6f61bdf674db2ade99862ed06da
tree9d6f01b4019ac2592b95ae75c8899b65487d0ab4
parent092c367ac6c621cf882061f46e21a5ab2c814a5d
drm/debugfs: remove checks for return value of drm_debugfs functions.

Since 987d65d01356 (drm: debugfs: make drm_debugfs_create_files() never
fail), there is no need to check the return value of
drm_debugfs_create_files(). Therefore, remove remove unnecessary checks
and error handling statement blocks for its return value.

These changes also enable changing drm_debugfs_create_files() to return
void.

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-17-wambui.karugax@gmail.com
drivers/gpu/drm/drm_debugfs.c
include/drm/drm_debugfs.h