net: sock_flag() cleanup
- sock_flag() accepts a const pointer - sock_flag() returns a boolean Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
865ec5523d
commit
1b23a5dfc2
@@ -650,7 +650,7 @@ static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag)
|
||||
__clear_bit(flag, &sk->sk_flags);
|
||||
}
|
||||
|
||||
static inline int sock_flag(struct sock *sk, enum sock_flags flag)
|
||||
static inline bool sock_flag(const struct sock *sk, enum sock_flags flag)
|
||||
{
|
||||
return test_bit(flag, &sk->sk_flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user