Issue #2992 has been reported by dcb.

----------------------------------------
Bug #2992: sys/netgraph7/netgraph/ng_base.c:590]: (style) Suspicious condition
http://bugs.dragonflybsd.org/issues/2992

* Author: dcb
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
sys/netgraph7/netgraph/ng_base.c:590]: (style) Suspicious condition (assignment 
+ comparison); Clarify expression with parentheses.

Source code is

      if ((error = ((*type->constructor)(*nodepp)) != 0)) {

maybe better code

      if ((error = ((*type->constructor)(*nodepp))) != 0) {




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

Reply via email to