From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: gpu: nova-core: vbios: keep PmuLookupTable local in setup_falcon_data Date: Thu, 23 Apr 2026 08:42:25 +1000 Message-ID: In-Reply-To: <20260421-fix-vbios-v3-7-8f648aef7a85@nvidia.com> References: <20260421-fix-vbios-v3-0-8f648aef7a85@nvidia.com> <20260421-fix-vbios-v3-7-8f648aef7a85@nvidia.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review Good refactoring. `pmu_lookup_table` was stored in `FwSecBiosBuilder` but only used within `setup_falcon_data`. Making it local simplifies the code and removes the `Option` field and the `.as_ref().ok_or(EINVAL)?` unwrap. Minor observation: the `else` branch uses `self.base.data.get(offset..).ok_or(EINVAL)?` (checked), but the `if` branch uses `&first_fwsec.base.data[offset..]` (unchecked). This is safe because the `if` condition guarantees `offset < first_fwsec.base.data.len()`, but it's slightly inconsistent style. This is fixed in patch 9 which converts both to `.get()`. --- Generated by Claude Code Patch Reviewer