net: return operator cleanup
Change "return (EXPR);" to "return EXPR;" return is not a function, parentheses are not required. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6a08d194ee
commit
a02cec2155
@ -239,13 +239,13 @@ int tipc_link_is_up(struct link *l_ptr)
|
||||
{
|
||||
if (!l_ptr)
|
||||
return 0;
|
||||
return (link_working_working(l_ptr) || link_working_unknown(l_ptr));
|
||||
return link_working_working(l_ptr) || link_working_unknown(l_ptr);
|
||||
}
|
||||
|
||||
int tipc_link_is_active(struct link *l_ptr)
|
||||
{
|
||||
return ((l_ptr->owner->active_links[0] == l_ptr) ||
|
||||
(l_ptr->owner->active_links[1] == l_ptr));
|
||||
return (l_ptr->owner->active_links[0] == l_ptr) ||
|
||||
(l_ptr->owner->active_links[1] == l_ptr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user