From: Stephen Hemminger Date: Wed, 9 Mar 2011 18:42:35 +0000 (-0800) Subject: Fix warning in u32 from assignment in conditional X-Git-Tag: v2.6.39~13^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7ac9ad4f480d6e162165ec3f2c8e1bf50003ec3;p=thirdparty%2Fiproute2.git Fix warning in u32 from assignment in conditional --- diff --git a/tc/f_u32.c b/tc/f_u32.c index d9d409143..c77e9cc89 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;