drm/amdgpu: fix ptr check warning in gfx9 ip_dump
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 7 Aug 2024 11:51:53 +0000 (17:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 14:33:07 +0000 (10:33 -0400)
commit07f4f9c00ec545dfa6251a44a09d2c48a76e7ee5
treef2e98decb1a3162533867f7743bd80cf948ac790
parent66e2d2d9a59f896def82a1c8684368be45cf4c06
drm/amdgpu: fix ptr check warning in gfx9 ip_dump

Change if (ptr == NULL) to if (!ptr) for a better
format and fix the warning.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c