summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2024-01-11 19:51:18 +0100
committerDanilo Krummrich <dakr@redhat.com>2024-01-11 19:53:45 +0100
commit52b638b1103509a23d4bcb9cb70a32c298434476 (patch)
tree056df90cd14b482b6244a15fcfefd4bdd0b9bb6c
parenta14b0f3f594b6151d15199d6d0c378023dbcfcef (diff)
nova: bios: make data immutable in pmu_ep()
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
-rw-r--r--drivers/gpu/drm/nova/bios.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nova/bios.rs b/drivers/gpu/drm/nova/bios.rs
index c44e4a40b24b..6cc848132f40 100644
--- a/drivers/gpu/drm/nova/bios.rs
+++ b/drivers/gpu/drm/nova/bios.rs
@@ -187,7 +187,7 @@ impl Bios {
fn pmu_ep(bios: &Bios, idx: u8, ver: &mut u8, hdr: &mut u8, info: &mut BiosPmuE) -> u32
{
- let mut data = Self::pmu_ee(bios, idx, ver, hdr);
+ let data = Self::pmu_ee(bios, idx, ver, hdr);
if data != 0 {
info.pmutype = bios.rd08(data as isize);
info.data = bios.rd32((data + 0x02) as isize);