Project

General

Profile

Actions

Bug #2991

closed

sys/dev/netif/age/if_age.c:628]: (style) Suspicious condition

Added by dcb over 7 years ago. Updated over 7 years ago.

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

Also available in: Atom PDF