Actions
Bug #2991
closedsys/dev/netif/age/if_age.c:628]: (style) Suspicious condition
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/28/2017
Due date:
% Done:
0%
Estimated time:
Description
sys/dev/netif/age/if_age.c:628]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
Source code is
if ((error = age_dma_alloc(sc) != 0))
goto fail;
Maybe better code
if ((error = age_dma_alloc(sc)) != 0)
goto fail;
Updated by dcb over 7 years ago
Same thing in different file:
dragonfly/sys/dev/netif/ale/if_ale.c:599]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.
Actions