[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250124181524.3584236-3-david@redhat.com>
Date: Fri, 24 Jan 2025 19:15:24 +0100
From: David Hildenbrand <david@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: dri-devel@...ts.freedesktop.org,
nouveau@...ts.freedesktop.org,
David Hildenbrand <david@...hat.com>,
Karol Herbst <kherbst@...hat.com>,
Lyude Paul <lyude@...hat.com>,
Danilo Krummrich <dakr@...nel.org>,
David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Alistair Popple <apopple@...dia.com>
Subject: [PATCH v1 2/2] nouveau/svm: don't initialize ret in nouveau_atomic_range_fault()
ret will be modified immediately afterwards.
Signed-off-by: David Hildenbrand <david@...hat.com>
---
drivers/gpu/drm/nouveau/nouveau_svm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c
index 8ea98f06d39af..2f8b8b978fc08 100644
--- a/drivers/gpu/drm/nouveau/nouveau_svm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_svm.c
@@ -594,7 +594,7 @@ static int nouveau_atomic_range_fault(struct nouveau_svmm *svmm,
struct page *page;
unsigned long start = args->p.addr;
unsigned long notifier_seq;
- int ret = 0;
+ int ret;
ret = mmu_interval_notifier_insert(¬ifier->notifier, mm,
args->p.addr, args->p.size,
--
2.47.1
Powered by blists - more mailing lists