[INET]: style updates for the inet_sock->is_icsk assignment fix
authorPaul Moore <paul.moore@hp.com>
Tue, 9 Jan 2007 22:37:06 +0000 (14:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2007 22:37:06 +0000 (14:37 -0800)
A quick patch to change the inet_sock->is_icsk assignment to better fit with
existing kernel coding style.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv6/af_inet6.c

index d60fd7321e6363f98a1c09bbfb2a3cc7d9853415..864009643675fe195be002f09e50bfeb69b0e417 100644 (file)
@@ -305,7 +305,7 @@ lookup_protocol:
                sk->sk_reuse = 1;
 
        inet = inet_sk(sk);
-       inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK;
+       inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0;
 
        if (SOCK_RAW == sock->type) {
                inet->num = protocol;
index 832a5e6e2d7e6270808bbfc70a26eddba49250a6..0e0e4262f4dc46a570c72c4a829699ef6fa6faf0 100644 (file)
@@ -171,7 +171,7 @@ lookup_protocol:
                sk->sk_reuse = 1;
 
        inet = inet_sk(sk);
-       inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK;
+       inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0;
 
        if (SOCK_RAW == sock->type) {
                inet->num = protocol;