Loading include/net/sock.h +1 −2 Original line number Original line Diff line number Diff line Loading @@ -544,8 +544,7 @@ static inline struct sock *sk_nulls_head(const struct hlist_nulls_head *head) static inline struct sock *sk_next(const struct sock *sk) static inline struct sock *sk_next(const struct sock *sk) { { return sk->sk_node.next ? return hlist_entry_safe(sk->sk_node.next, struct sock, sk_node); hlist_entry(sk->sk_node.next, struct sock, sk_node) : NULL; } } static inline struct sock *sk_nulls_next(const struct sock *sk) static inline struct sock *sk_nulls_next(const struct sock *sk) Loading Loading
include/net/sock.h +1 −2 Original line number Original line Diff line number Diff line Loading @@ -544,8 +544,7 @@ static inline struct sock *sk_nulls_head(const struct hlist_nulls_head *head) static inline struct sock *sk_next(const struct sock *sk) static inline struct sock *sk_next(const struct sock *sk) { { return sk->sk_node.next ? return hlist_entry_safe(sk->sk_node.next, struct sock, sk_node); hlist_entry(sk->sk_node.next, struct sock, sk_node) : NULL; } } static inline struct sock *sk_nulls_next(const struct sock *sk) static inline struct sock *sk_nulls_next(const struct sock *sk) Loading