diff options
| author | Zhen Lei <[email protected]> | 2021-08-04 03:50:36 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2021-08-09 22:32:38 +0000 |
| commit | e441b56fe438fd126b9eea7d30c57d3cd3f34e14 (patch) | |
| tree | 2fdfb38b7bfc4dbada4e4429e199b46335002d93 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | workqueue: Fix typo in comments (diff) | |
| download | kernel-e441b56fe438fd126b9eea7d30c57d3cd3f34e14.tar.gz kernel-e441b56fe438fd126b9eea7d30c57d3cd3f34e14.zip | |
workqueue: Replace deprecated ida_simple_*() with ida_alloc()/ida_free()
Replace ida_simple_get() with ida_alloc() and ida_simple_remove() with
ida_free(), the latter is more concise and intuitive.
In addition, if ida_alloc() fails, NULL is returned directly. This
eliminates unnecessary initialization of two local variables and an 'if'
judgment.
Signed-off-by: Zhen Lei <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
