]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd88538e76eca19fba1bf800ea3630be6dd87ee3e
treee034c3791780c16625466aa08e89b93fa1b5b7f1
parent7b630629071dcc52a38331c926a89e5b8bb96bae
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