]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Fix warning in u32 from assignment in conditional
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Wed, 9 Mar 2011 18:42:35 +0000 (10:42 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 12 Apr 2011 21:23:39 +0000 (14:23 -0700)
tc/f_u32.c

index d9d409143da92dad4adfad51ca29379a3a3549ad..c77e9cc894d9334f65dcdc7b5ec8e62136af5284 100644 (file)
@@ -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;