Commit 45d287c
committed
stm32/eth: Code cleanup - remove unused constant and fix issues.
This commit addresses 4 issues found during comprehensive code review:
1. Remove unused MAC_RECONFIG_DELAY_MS constant (all uses were removed
when fixed delays were replaced with descriptor polling).
2. Initialize mac_speed_configured and autoneg_start_ms in eth_init()
to prevent uninitialized values between eth_init() and eth_start().
3. Fix misleading comment about DHCP restart - the link-down handler
only does dhcp_stop(), not dhcp_start().
4. Remove extra blank line in eth_phy.h.
No functional changes, purely cleanup.
Signed-off-by: Andrew Leech <[email protected]>1 parent e86d748 commit 45d287c
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments