Commit b9c82f59 authored by Wambui Karuga's avatar Wambui Karuga Committed by Simona Vetter
Browse files

drm/vc4: remove check of return value of drm_debugfs functions

Since 987d65d0 (drm: debugfs: make
drm_debugfs_create_files() never fail), drm_debugfs_create_files() never
fails and should return void. Therefore, remove unnecessary check and
error handling for the return value of drm_debugfs_create_files()
in vc4_debugfs_init().

v2: remove conversion of vc4_debugfs_init() to void to enable individual
compilation and avoid build issues and breakage.

References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html


Signed-off-by: default avatarWambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200310133121.27913-5-wambui.karugax@gmail.com
parent 19660e89
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -30,11 +30,8 @@ vc4_debugfs_init(struct drm_minor *minor)
			    minor->debugfs_root, &vc4->load_tracker_enabled);

	list_for_each_entry(entry, &vc4->debugfs_list, link) {
		int ret = drm_debugfs_create_files(&entry->info, 1,
		drm_debugfs_create_files(&entry->info, 1,
					 minor->debugfs_root, minor);

		if (ret)
			return ret;
	}

	return 0;