<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="font-family: "segoe ui westeuropean", "segoe ui", helvetica, arial, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Christian König <christian.koenig@amd.com></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Sharma, Shashank <Shashank.Sharma@amd.com><br>
<b>Gesendet:</b> Samstag, 13. Februar 2021 17:37<br>
<b>An:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Sharma, Shashank <Shashank.Sharma@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Betreff:</b> [PATCH 2/2] drm/amdgpu: clean-up unused variable</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Variable 'bp' seems to be unused residue from previous<br>
logic, and is not required anymore.<br>
<br>
Cc: Koenig Christian <christian.koenig@amd.com><br>
Cc: Deucher Alexander <alexander.deucher@amd.com><br>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 8 --------<br>
 1 file changed, 8 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c<br>
index db62f3c9d6a5..d3e4d6a06bbd 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c<br>
@@ -435,17 +435,9 @@ amdgpu_dma_buf_create_obj(struct drm_device *dev, struct dma_buf *dma_buf)<br>
         struct dma_resv *resv = dma_buf->resv;<br>
         struct amdgpu_device *adev = drm_to_adev(dev);<br>
         struct amdgpu_bo *bo;<br>
-       struct amdgpu_bo_param bp;<br>
         struct drm_gem_object *gobj;<br>
         int ret;<br>
 <br>
-       memset(&bp, 0, sizeof(bp));<br>
-       bp.size = dma_buf->size;<br>
-       bp.byte_align = PAGE_SIZE;<br>
-       bp.domain = AMDGPU_GEM_DOMAIN_CPU;<br>
-       bp.flags = 0;<br>
-       bp.type = ttm_bo_type_sg;<br>
-       bp.resv = resv;<br>
         dma_resv_lock(resv, NULL);<br>
         ret = amdgpu_gem_object_create(adev, dma_buf->size, PAGE_SIZE,<br>
                         AMDGPU_GEM_DOMAIN_CPU, AMDGPU_GEM_CREATE_CPU_GTT_USWC,<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</body>
</html>