Am 03.10.24 um 15:49 schrieb Sunil Khatri:
remove the duplicate ip_block object in the
isp_hw_init function.
Signed-off-by: Sunil Khatri <sunil.khatri@xxxxxxx>
You probably already pushed this, but Reviewed-by: Christian König
<christian.koenig@xxxxxxx> anyway.
Regards,
Christian.
---
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
index 416e8b3fad79..adc0b80ca5db 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
@@ -54,12 +54,6 @@ static int isp_hw_init(struct amdgpu_ip_block *ip_block)
struct amdgpu_device *adev = ip_block->adev;
struct amdgpu_isp *isp = &adev->isp;
- const struct amdgpu_ip_block *ip_block =
- amdgpu_device_ip_get_ip_block(adev, AMD_IP_BLOCK_TYPE_ISP);
-
- if (!ip_block)
- return -EINVAL;
-
if (isp->funcs->hw_init != NULL)
return isp->funcs->hw_init(isp);