summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-05-16 05:57:07 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-16 15:30:26 -0400
commit1b23a5dfc20469d4a4bb8a552dd224ac693c407c (patch)
tree304bbd5a49eb33a0fa4e8ca103811c0f936037c7 /include/net
parent865ec5523dadbedefbc5710a68969f686a28d928 (diff)
downloadlinux-1b23a5dfc20469d4a4bb8a552dd224ac693c407c.tar.bz2
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index e613704e9d1c..036f5069b6e0 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -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);
}