diff options
| author | Rex Zhu <[email protected]> | 2018-11-23 10:52:21 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-11-26 20:47:34 +0000 |
| commit | 51f1f6f51712aade68cabb145ed8bab4a6c3997e (patch) | |
| tree | e89e3aebb53d7a56e96278bb3c7dc4d43c612dee /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD (diff) | |
| download | kernel-51f1f6f51712aade68cabb145ed8bab4a6c3997e.tar.gz kernel-51f1f6f51712aade68cabb145ed8bab4a6c3997e.zip | |
drm/amdgpu: Fix static checker warning
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:49 amdgpu_allocate_static_csa()
error: uninitialized symbol 'ptr'.
the test if (!bo) doesn't work, as the bo is a pointer to a pointer.
if bo create failed, the *bo will be set to NULL.
so change to test *bo.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Rex Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
