diff options
author | Stanley.Yang <[email protected]> | 2020-03-12 18:18:39 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-03-13 11:52:34 -0400 |
commit | c1509f3f6fa41addf863aee5af7f406e56d110b4 (patch) | |
tree | aae84156bb4516db934eb18c86ced8bc12e3eaea /lib/mpi/mpi-mod.c | |
parent | 565d1941557756a584ac357d945bc374d5fcd1d0 (diff) |
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 <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions