diff options
| author | Greg Kroah-Hartman <[email protected]> | 2019-06-13 13:34:39 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2019-06-13 14:39:16 +0000 |
| commit | b792e64021ecdefd27b84eb235d59b0476d4255c (patch) | |
| tree | 537906c9e15624a6fa8623c0417c54ba4c1457bf /drivers/gpu/drm/drm_crtc.c | |
| parent | drm/bridge: analogix_dp: Convert to GPIO descriptors (diff) | |
| download | kernel-b792e64021ecdefd27b84eb235d59b0476d4255c.tar.gz kernel-b792e64021ecdefd27b84eb235d59b0476d4255c.zip | |
drm: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
Because there is no need to check these functions, a number of local
functions can be made to return void to simplify things as nothing can
fail.
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
| -rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 790ba5941954..4936e1080e41 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -122,9 +122,7 @@ int drm_crtc_register_all(struct drm_device *dev) int ret = 0; drm_for_each_crtc(crtc, dev) { - if (drm_debugfs_crtc_add(crtc)) - DRM_ERROR("Failed to initialize debugfs entry for CRTC '%s'.\n", - crtc->name); + drm_debugfs_crtc_add(crtc); if (crtc->funcs->late_register) ret = crtc->funcs->late_register(crtc); |
