]> git.baikalelectronics.ru Git - kernel.git/commit
drm: debugfs: make drm_debugfs_create_files() never fail
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Jun 2019 09:51:10 +0000 (11:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Jun 2019 14:59:51 +0000 (16:59 +0200)
commit987d65d013561947282525dbf5425b2bc28b69e6
tree40ab87a2b54dd1c6d89489381e2db9814abf02d0
parentde85ec271a864c05e99ad5ffbed9e95d1b65c757
drm: debugfs: make drm_debugfs_create_files() never fail

As stated before, there is no need to care if a debugfs function
succeeds or not, and no code logic in the kernel should ever change
based on a debugfs function return value, so make
drm_debugfs_create_files() never fail.  If it encounters an
odd/rare/impossible error (i.e. out of memory, or a duplicate debugfs
filename to be created), just keep on moving as if nothing improper had
happened.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190614095110.3716-2-gregkh@linuxfoundation.org
drivers/gpu/drm/drm_debugfs.c