]> granicus.if.org Git - ipset/commitdiff
Typo in ip_set_hash_netnet.c fixed
authorDavid Binderman <dcb314@hotmail.com>
Tue, 3 Dec 2013 16:11:23 +0000 (17:11 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 3 Dec 2013 16:12:24 +0000 (17:12 +0100)
I just ran the static analyser "cppcheck" over the source
code of linux-3.13-rc1. It said

[linux-3.13-rc1/net/netfilter/ipset/ip_set_hash_netnet.c:62] ->
[linux-3.13-rc1/net/net
filter/ipset/ip_set_hash_netnet.c:62]: (style)
Same expression on both sides of '=='.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/net/netfilter/ipset/ip_set_hash_netnet.c

index 2bc2dec20b007026e78aba74451e70039c6e5988..6226803fc490ce33c53994c344a1c034b9b0cce9 100644 (file)
@@ -59,7 +59,7 @@ hash_netnet4_data_equal(const struct hash_netnet4_elem *ip1,
                     u32 *multi)
 {
        return ip1->ipcmp == ip2->ipcmp &&
-              ip2->ccmp == ip2->ccmp;
+              ip1->ccmp == ip2->ccmp;
 }
 
 static inline int