]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdgpu: fix ptr check warning in gfx11 ip_dump
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 7 Aug 2024 11:57:10 +0000 (17:27 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 14:34:31 +0000 (10:34 -0400)
commitbd15f805cdc503ac229a14f5fe21db12e6e7f84a
treed35138513328d451ec2f6d59da3d3652fc5b61d8
parent98df5a7732e3b78bf8824d2938a8865a45cfc113
drm/amdgpu: fix ptr check warning in gfx11 ip_dump

Change condition, 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_v11_0.c