drm/xe/vm : Remove duplicate assignment of XE_VM_FLAG_LR_MODE flag.
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Thu, 7 Mar 2024 06:52:13 +0000 (12:22 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Mar 2024 16:14:09 +0000 (12:14 -0400)
vm->flags are already assigned with passed flags. Remove the redundant
assignment.

Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240307065213.1968688-1-himal.prasad.ghimiray@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c

index 51d62323d9eea2c225848335ec199a4f0fe07af5..80d43d75b1da86e729f545cc42ac21635938a341 100644 (file)
@@ -1386,9 +1386,8 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags)
                vm->batch_invalidate_tlb = true;
        }
 
-       if (flags & XE_VM_FLAG_LR_MODE) {
+       if (vm->flags & XE_VM_FLAG_LR_MODE) {
                INIT_WORK(&vm->preempt.rebind_work, preempt_rebind_work_func);
-               vm->flags |= XE_VM_FLAG_LR_MODE;
                vm->batch_invalidate_tlb = false;
        }