Stanley.Yang c1509f3f6f drm/amdgpu: fix warning in ras_debugfs_create_all()
Fix the warning
"warn: variable dereferenced before check 'obj' (see line 1131)"
by removing unnecessary checks as amdgpu_ras_debugfs_create_all()
is only called from amdgpu_debugfs_init() where obj member in
con->head list is not NULL.
Use list_for_each_entry() instead list_for_each_entry_safe() as obj
do not to be freeing or removing from list during this process.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-03-13 11:52:34 -04:00
..
2020-01-20 11:42:57 +10:00
2020-03-02 09:22:43 +01:00
2020-03-12 12:42:56 +10:00
2020-01-30 08:04:01 -08:00
2020-03-12 12:42:56 +10:00
2020-03-11 07:27:21 +10:00
2020-03-12 12:42:56 +10:00
2020-02-21 05:44:40 +10:00
2020-03-11 07:27:21 +10:00
2020-03-02 09:22:49 +01:00
2020-03-12 12:42:56 +10:00
2020-03-12 12:42:56 +10:00
2020-03-12 12:42:56 +10:00
2020-03-02 09:22:56 +01:00
2020-03-11 07:27:21 +10:00
2020-03-12 12:42:56 +10:00
2020-03-12 12:42:56 +10:00
2020-02-21 05:44:40 +10:00
2020-03-11 07:27:21 +10:00
2020-01-14 16:22:17 -05:00
2019-10-08 18:29:00 +02:00
2020-02-21 05:44:40 +10:00
2020-01-14 16:22:17 -05:00
2019-12-17 13:57:54 +01:00
2020-01-14 16:22:17 -05:00
2020-03-09 09:22:50 +00:00