Fix warning in u32 from assignment in conditional
This commit is contained in:
parent
8988b02ee1
commit
d7ac9ad4f4
|
|
@ -432,7 +432,8 @@ static int parse_ip6_class(int *argc_p, char ***argv_p, struct tc_u32_sel *sel)
|
||||||
key = htonl(key);
|
key = htonl(key);
|
||||||
mask = htonl(mask);
|
mask = htonl(mask);
|
||||||
|
|
||||||
if (res = pack_key(sel, key, mask, off, offmask) < 0)
|
res = pack_key(sel, key, mask, off, offmask);
|
||||||
|
if (res < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
*argc_p = argc;
|
*argc_p = argc;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue