[DragonFlyBSD - Bug #3024] (New) sys/dev/netif/wi/if_wi.c:1090]: (style) Redundant condition

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Apr 11 11:56:08 PDT 2017


Issue #3024 has been reported by dcb.

----------------------------------------
Bug #3024: sys/dev/netif/wi/if_wi.c:1090]: (style) Redundant condition
http://bugs.dragonflybsd.org/issues/3024

* Author: dcb
* Status: New
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
sys/dev/netif/wi/if_wi.c:1090]: (style) Redundant condition: params. '!params || (params && params.ibp_flags&IEEE80211_BPF_CRYPTO)' is equivalent to '!params || params.ibp_flags&IEEE80211_BPF_CRYPTO'

Source code is

    if ((wh->i_fc[1] & IEEE80211_FC1_PROTECTED) &&
        (!params || (params && (params->ibp_flags & IEEE80211_BPF_CRYPTO)))) {



-- 
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