drm/nouveau/svm: Remove set but unused variable 'priority'
Subsystems (3)
PATCH 1/1 drm/nouveau/svm: Remove set but unused variable 'priority'
Variable priority is not effectively used in the function, so delete it.
drivers/gpu/drm/nouveau/nouveau_svm.c:115:24: warning: variable 'priority' set but not used.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_svm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/nouveau/nouveau_svm.c +1 -4
@@ -112,7 +112,7 @@ nouveau_svmm_bind(struct drm_device *dev, void *data, {struct nouveau_cli *cli =nouveau_cli (file_priv);struct drm_nouveau_svm_bind *args = data; -unsigned target, cmd, priority; +unsigned int target, cmd;unsigned long addr, end;struct mm_struct *mm;
@@ -136,9 +136,6 @@ nouveau_svmm_bind(struct drm_device *dev, void *data,return -EINVAL ; } - priority = args->header >>NOUVEAU_SVM_BIND_PRIORITY_SHIFT ; - priority &=NOUVEAU_SVM_BIND_PRIORITY_MASK ; -/* FIXME support CPU target ie all target value < GPU_VRAM */ target = args->header >>NOUVEAU_SVM_BIND_TARGET_SHIFT ; target &=NOUVEAU_SVM_BIND_TARGET_MASK ;
Signature · 1 line
2.20.1.7.g153144c