netlink: Fix the compiler warning in netlink_add_broadcast
netlink/netlink_conn.c: In function 'netlink_add_broadcast': netlink/netlink_conn.c:319:45: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 319 | if (conn->groups & (1 << (group - 1)) == 0) | ~~~~~~~~~~~~~~~~~~~^~~~
This commit is contained in:
parent
9ac3a0d4d8
commit
6f1c86d934
@ -317,7 +317,7 @@ void netlink_add_broadcast(int group, FAR struct netlink_response_s *data)
|
|||||||
|
|
||||||
while ((conn = netlink_nextconn(conn)) != NULL)
|
while ((conn = netlink_nextconn(conn)) != NULL)
|
||||||
{
|
{
|
||||||
if (conn->groups & (1 << (group - 1)) == 0)
|
if ((conn->groups & (1 << (group - 1))) == 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user