amdgpu: use NULL instead of 0 for pointer
authorArnd Bergmann <arnd@arndb.de>
Wed, 15 Jun 2016 20:15:00 +0000 (22:15 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:54:43 +0000 (14:54 -0400)
commiteafc9c2704aa71806771f809233c4f374d0a0a22
treed980e7fa904481655f76f4e886975a48792e5ee2
parentce64bc25ef2542296d9bf905994c1647442d65d6
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 <christian.koenig@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c