1. sys/dev/bce/if_bce.c:11283]: (warning) Logical conjunction always evaluates to false: i < 807936 && i > 917503. if (i < 0xc5400 && i > 0xdffff) 2. sys/dev/bce/if_bce.c:11403]: (warning) Logical conjunction always evaluates to false: i < 1594368 && i > 1703935. if (i < 0x185400 && i > 0x19ffff)
Still broken three years later.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5deab77bb6d119dd171385d144a622e7ba7108fe commit 5deab77bb6d119dd171385d144a622e7ba7108fe Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2025-02-02 16:49:15 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2025-02-02 16:49:15 +0000 bce: Fix register dumping to skip blank area When compiling with debug enabled, this produces an always false warning. It's clear that this was to skip ranges that aren't used when dumping the registers, so change the && to || to skip things properly. PR: 200984 Sponsored by: Netflix sys/dev/bce/if_bce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
no MFC planned, so closing it before we hit the decade mark on this bug. Since BCE_DEBUG has been broken for a long time, I don't think fixing this matters at all. But it's fixed.