diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2026-06-04 21:05:01 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-06-09 10:43:33 -0700 |
| commit | 1e1edc973c64307821ee22049908e7ded8f973c2 (patch) | |
| tree | c7c7c06ffb48915ea74d85eb47812dd4effdab69 /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | c268f949e219f9e179558e836f457f6c5fbec416 (diff) | |
cxl/region: Avoid variable shadowing in region attach paths
A couple of symbol declarations shadow earlier variables in the region
attach paths. Shadowing makes it harder to tell which object is being
referenced and can obscure future bugs.
Reuse the existing 'cxld' variable in cxl_port_attach_region() and
rename the endpoint decoder iterator in cxl_region_attach() to avoid
shadowing the function parameter.
No functional change.
Found with sparse.
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260605040504.865728-1-alison.schofield@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
