[INET]: style updates for the inet_sock->is_icsk assignment fix
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>
This commit is contained in:
Родитель
4a1c0107bc
Коммит
469de9b90f
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче