aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-06-15 20:15:00 +0000
committerAlex Deucher <[email protected]>2016-07-07 18:54:43 +0000
commiteafc9c2704aa71806771f809233c4f374d0a0a22 (patch)
treed980e7fa904481655f76f4e886975a48792e5ee2 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentdrm/amdgpu: pipeline evictions as well (diff)
downloadkernel-eafc9c2704aa71806771f809233c4f374d0a0a22.tar.gz
kernel-eafc9c2704aa71806771f809233c4f374d0a0a22.zip
amdgpu: use NULL instead of 0 for pointer
In the AMD powerplay driver, a pointer is checked for validity by comparing against an integer '0', which causes a harmless warning when building with "make W=1": drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/processpptables.c:1502:16: error: ordered comparison of pointer with integer zero [-Werror=extra] This changes the code to the more conventional "if (pointer)" check. Reviewed-by: Christian König <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions