ip: add paren to silence warning

Gcc doesn't like mixed || and && in same conditional.
This commit is contained in:
Stephen Hemminger 2014-07-14 12:06:52 -07:00
parent 76723fd1c6
commit 1199c4f569

View File

@ -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);