mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-12-07 17:29:19 +00:00
ip: add paren to silence warning
Gcc doesn't like mixed || and && in same conditional.
This commit is contained in:
parent
76723fd1c6
commit
1199c4f569
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user