Fix comparisation conditions in route_cmp()
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Apr 2013 12:16:19 +0000 (14:16 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Apr 2013 12:16:19 +0000 (14:16 +0200)
interface-ip.c

index 7155fe4a404ba09f2ba87bb33b2dc2cdc120db29..bf7cf407787df0713a82355c2dfc0fa3b505ca55 100644 (file)
@@ -289,10 +289,10 @@ route_cmp(const void *k1, const void *k2, void *ptr)
 {
        const struct device_route *r1 = k1, *r2 = k2;
 
-       if (r1->mask != r2->mask);
+       if (r1->mask != r2->mask)
                return r2->mask - r1->mask;
 
-       if (r1->metric != r2->metric);
+       if (r1->metric != r2->metric)
                return r1->metric - r2->metric;
 
        if (r1->flags != r2->flags)