Commit 1199c4f5 authored by Stephen Hemminger's avatar Stephen Hemminger

ip: add paren to silence warning

Gcc doesn't like mixed || and && in same conditional.
parent 76723fd1
......@@ -1329,7 +1329,7 @@ void ipaddr_get_vf_rate(int vfnum, int *min, int *max, int idx)
ifi = NLMSG_DATA(n);
len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi));
if (len < 0 || idx && idx != ifi->ifi_index)
if (len < 0 || (idx && idx != ifi->ifi_index))
continue;
parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment