drm/amdgpu: remove redundant null check
authorWeiguo Li <liwg06@foxmail.com>
Wed, 2 Mar 2022 16:17:39 +0000 (00:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2022 23:40:07 +0000 (18:40 -0500)
commit3192f1d9b61a59d7c82fef187bffa7281fbdc9f5
treee034c3791780c16625466aa08e89b93fa1b5b7f1
parent825e0af0d453f18bb84feb40bff447cf59d61979
drm/amdgpu: remove redundant null check

Remove the redundant null check since the caller ensures
that 'ctx' is never NULL.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c