mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
drm/amdgpu: remove set but not used variable 'priority'
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c: In function amdgpu_job_submit:
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c:148:26: warning: variable priority set but not used [-Wunused-but-set-variable]
commit 33abcb1f5a
("drm/amdgpu: set compute queue priority at mqd_init")
left behind this, remove it.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
408d912100
commit
00aba6da21
1 changed files with 0 additions and 2 deletions
|
@ -145,7 +145,6 @@ void amdgpu_job_free(struct amdgpu_job *job)
|
||||||
int amdgpu_job_submit(struct amdgpu_job *job, struct drm_sched_entity *entity,
|
int amdgpu_job_submit(struct amdgpu_job *job, struct drm_sched_entity *entity,
|
||||||
void *owner, struct dma_fence **f)
|
void *owner, struct dma_fence **f)
|
||||||
{
|
{
|
||||||
enum drm_sched_priority priority;
|
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!f)
|
if (!f)
|
||||||
|
@ -157,7 +156,6 @@ int amdgpu_job_submit(struct amdgpu_job *job, struct drm_sched_entity *entity,
|
||||||
|
|
||||||
*f = dma_fence_get(&job->base.s_fence->finished);
|
*f = dma_fence_get(&job->base.s_fence->finished);
|
||||||
amdgpu_job_free_resources(job);
|
amdgpu_job_free_resources(job);
|
||||||
priority = job->base.s_priority;
|
|
||||||
drm_sched_entity_push_job(&job->base, entity);
|
drm_sched_entity_push_job(&job->base, entity);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue