[PATCH 5.16 066/227] drm/amdgpu: fix logic inversion in check