aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStanley.Yang <Stanley.Yang@amd.com>2020-03-12 18:18:39 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-03-13 11:52:34 -0400
commitc1509f3f6fa41addf863aee5af7f406e56d110b4 (patch)
treeaae84156bb4516db934eb18c86ced8bc12e3eaea /tools/perf/scripts/python
parentdrm/amdgpu: add fbdev suspend/resume on gpu reset (diff)
downloadlinux-c1509f3f6fa41addf863aee5af7f406e56d110b4.tar.gz
linux-c1509f3f6fa41addf863aee5af7f406e56d110b4.zip
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions