Skip to content

Commit dd3dd98

Browse files
Umio-Yasunoalexdeucher
authored andcommitted
drm/amdgpu: Remove unused variables from amdgpu_show_fdinfo
Remove unused variables from amdgpu_show_fdinfo Reviewed-by: Christian König <[email protected]> Signed-off-by: Umio Yasuno <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e8e696c commit dd3dd98

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,15 @@ static const char *amdgpu_ip_name[AMDGPU_HW_IP_NUM] = {
5656

5757
void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file)
5858
{
59-
struct amdgpu_device *adev = drm_to_adev(file->minor->dev);
6059
struct amdgpu_fpriv *fpriv = file->driver_priv;
6160
struct amdgpu_vm *vm = &fpriv->vm;
6261

6362
struct amdgpu_mem_stats stats;
6463
ktime_t usage[AMDGPU_HW_IP_NUM];
65-
uint32_t bus, dev, fn, domain;
6664
unsigned int hw_ip;
6765
int ret;
6866

6967
memset(&stats, 0, sizeof(stats));
70-
bus = adev->pdev->bus->number;
71-
domain = pci_domain_nr(adev->pdev->bus);
72-
dev = PCI_SLOT(adev->pdev->devfn);
73-
fn = PCI_FUNC(adev->pdev->devfn);
7468

7569
ret = amdgpu_bo_reserve(vm->root.bo, false);
7670
if (ret)

0 commit comments

Comments
 (0)