diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-10-31 16:05:01 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-05 17:58:51 -0800 |
| commit | c79a022524577e486220bc9627ccebc706148c1f (patch) | |
| tree | b88e2223f06bbabe688453768958f75f1f818e65 /rust/kernel/processor.rs | |
| parent | dfb073d32cac28cdb597d16d1e0589b25c841661 (diff) | |
net: dsa: microchip: Fix a link check in ksz9477_pcs_read()
The BMSR_LSTATUS define is 0x4 but the "p->phydev.link" variable
is a 1 bit bitfield in a u32. Since 4 doesn't fit in 0-1 range
it means that ".link" is always set to false. Add a !! to fix
this.
[Jakub: According to Maxime the phydev struct isn't really
used and we should consider removing it completely. So not
treating this as a fix.]
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aQSz_euUg0Ja8ZaH@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel/processor.rs')
0 files changed, 0 insertions, 0 deletions
