Skip to content

Commit

Permalink
[INET]: style updates for the inet_sock->is_icsk assignment fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Moore authored and David S. Miller committed Jan 9, 2007
1 parent 4a1c010 commit 469de9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int inet_create(struct socket *sock, int 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;
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static int inet6_create(struct socket *sock, int 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;
Expand Down

0 comments on commit 469de9b

Please sign in to comment.