summaryrefslogtreecommitdiffstats
path: root/tc/f_u32.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-03-09 10:42:35 -0800
committerStephen Hemminger <shemminger@vyatta.com>2011-04-12 14:23:39 -0700
commitd7ac9ad4f480d6e162165ec3f2c8e1bf50003ec3 (patch)
tree4e2024fd4a009df0bf3a345cb46435a3650fe068 /tc/f_u32.c
parent8988b02ee1d04fdf07b913454b8d4e7b5e3092e5 (diff)
Fix warning in u32 from assignment in conditional
Diffstat (limited to 'tc/f_u32.c')
-rw-r--r--tc/f_u32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tc/f_u32.c b/tc/f_u32.c
index d9d40914..c77e9cc8 100644
--- a/tc/f_u32.c
+++ b/tc/f_u32.c
@@ -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;