diff mbox series

drm/nouveau: fix duplicate pointer to struct drm_device

Message ID 20240415095351.119072-1-dakr@redhat.com (mailing list archive)
State New, archived
Headers show
Series drm/nouveau: fix duplicate pointer to struct drm_device | expand

Commit Message

Danilo Krummrich April 15, 2024, 9:53 a.m. UTC
nouveau_uvmm_ioctl_vm_init() already has a pointer to struct drm_device,
no need to derive another one from struct drm_file.

Fixes: 266f7618e761 ("drm/nouveau: separately allocate struct nouveau_uvmm")
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
---
 drivers/gpu/drm/nouveau/nouveau_uvmm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


base-commit: a57e191ebbaa0363dbf352cc37447c2230573e29
prerequisite-patch-id: 2d453c82161ab6a188caae12e558e8c8d6c1a450
diff mbox series

Patch

diff --git a/drivers/gpu/drm/nouveau/nouveau_uvmm.c b/drivers/gpu/drm/nouveau/nouveau_uvmm.c
index 0a0a11dc9ec0..929afd5bc773 100644
--- a/drivers/gpu/drm/nouveau/nouveau_uvmm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_uvmm.c
@@ -1812,13 +1812,12 @@  static const struct drm_gpuvm_ops gpuvm_ops = {
 };
 
 int
-nouveau_uvmm_ioctl_vm_init(struct drm_device *dev,
+nouveau_uvmm_ioctl_vm_init(struct drm_device *drm,
 			   void *data,
 			   struct drm_file *file_priv)
 {
 	struct nouveau_uvmm *uvmm;
 	struct nouveau_cli *cli = nouveau_cli(file_priv);
-	struct drm_device *drm = cli->drm->dev;
 	struct drm_gem_object *r_obj;
 	struct drm_nouveau_vm_init *init = data;
 	u64 kernel_managed_end;