diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-03-09 10:42:35 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2011-04-12 14:23:39 -0700 |
commit | d7ac9ad4f480d6e162165ec3f2c8e1bf50003ec3 (patch) | |
tree | 4e2024fd4a009df0bf3a345cb46435a3650fe068 /tc/f_u32.c | |
parent | 8988b02ee1d04fdf07b913454b8d4e7b5e3092e5 (diff) |
Fix warning in u32 from assignment in conditional
Diffstat (limited to 'tc/f_u32.c')
-rw-r--r-- | tc/f_u32.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -432,7 +432,8 @@ static int parse_ip6_class(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) key = htonl(key); 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; *argc_p = argc; |