[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20230731141437.3280099-1-konstantin.meskhidze@huawei.com>
Date: Mon, 31 Jul 2023 22:14:37 +0800
From: Konstantin Meskhidze <konstantin.meskhidze@...wei.com>
To: <bskeggs@...hat.com>
CC: <kherbst@...hat.com>, <lyude@...hat.com>, <airlied@...il.com>,
<daniel@...ll.ch>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <yusongping@...wei.com>,
<artem.kuzin@...wei.com>
Subject: [PATCH] drivers: gpu: drm: nouveau: fix invalid variable name
This commit fixes logic error in function 'nvkm_dp_train':
argument of function nvkm_dp_train_link might be rate, not ret
Co-developed-by: Ivanov Mikhail <ivanov.mikhail1@...wei-partners.com>
Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@...wei.com>
---
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
index 40c8ea43c..8740978ac 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
@@ -455,7 +455,7 @@ nvkm_dp_train(struct nvkm_outp *outp, u32 dataKBps)
if (atomic_read(&outp->dp.lt.done)) {
for (rate = 0; rate < outp->dp.rates; rate++) {
if (outp->dp.rate[rate].rate == ior->dp.bw * 27000)
- return nvkm_dp_train_link(outp, ret);
+ return nvkm_dp_train_link(outp, rate);
}
WARN_ON(1);
return -EINVAL;
--
2.34.1
Powered by blists - more mailing lists