[DragonFlyBSD - Bug #3018] (Resolved) sys/bus/u4b/wlan/if_run.c:5464]: (style) Redundant condition

liweitianux bugtracker-admin at leaf.dragonflybsd.org
Thu Oct 8 21:56:56 PDT 2026


Issue #3018 has been updated by liweitianux.

Status changed from New to Resolved

Patch merged. Thank you.

----------------------------------------
Bug #3018: sys/bus/u4b/wlan/if_run.c:5464]: (style) Redundant condition
http://bugs.dragonflybsd.org/issues/3018#change-14826

* Author: dcb
* Status: Resolved
* Priority: Normal
* Target version: 6.4
* Start date: 2017-04-11
----------------------------------------
sys/bus/u4b/wlan/if_run.c:5464]: (style) Redundant condition: If 'EXPR < 513', the comparison 'EXPR < 529' is always true.

Source code is

    } else if (sc->mac_rev < 0x0201 || sc->mac_rev < 0x0211)
        run_rt3070_rf_write(sc, 27, 0x03);


---Files--------------------------------
0001-run-simplify-revision-comparison.patch (959 Bytes)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list