X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fnet%2Fsock.h;h=c9fad6fb629b652d4c27e3965859efe12c3d7895;hb=8190bdb9291758f3b8c436ec1154c9923ddb57ea;hp=ff8b0dad7b0fcb5831f0801e4489fce01944d8ab;hpb=dc6de33674608f978ec29f5c2f7e3af458c06f78;p=powerpc.git diff --git a/include/net/sock.h b/include/net/sock.h index ff8b0dad7b..c9fad6fb62 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -279,7 +279,7 @@ static inline int sk_unhashed(const struct sock *sk) static inline int sk_hashed(const struct sock *sk) { - return sk->sk_node.pprev != NULL; + return !sk_unhashed(sk); } static __inline__ void sk_node_init(struct hlist_node *node)