mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user