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 7155fe4..bf7cf40 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)