Commit 84e215d
committed
u-boot: v2026.04: fdt_fixup_ethernet: avoid nodeoff shadowing
When FDT_SEQ_MACADDR_FROM_ENV is defined, nodeoff is already declared
and assigned earlier in the function. The later 'int nodeoff = ...'
shadowed that variable and performed a redundant fdt_path_offset()
lookup.
Guard the inner declaration with #ifndef so it only exists when the
outer one does not. No behavior change — the same nodeoff value is
checked either way.
Addresses a CodeRabbit review comment on PR armbian#9675.1 parent cf1aeca commit 84e215d
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
0 commit comments