diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-15 06:03:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:54:00 -0500 |
commit | c0ef877b2c9f543e9fb7953bfe1a0cd3a4eae362 (patch) | |
tree | 8e97df63b9e1b3cac8040461c263c0c938f8b994 /include/net/sock.h | |
parent | de0fa95c14bc4d4b545fae26439371ebfdcb8534 (diff) |
[NET]: Move sock_valbool_flag to socket.c
The sock_valbool_flag() helper is used in setsockopt to
set or reset some flag on the sock. This helper is required
in the net/socket.c only, so move it there.
Besides, patch two places in sys_setsockopt() that repeat
this helper functionality manually.
Since this is not a bugfix, but a trivial cleanup, I
prepared this patch against net-2.6.25, but it also
applies (with a single offset) to the latest net-2.6.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index f5b643714131..9c55af8e5f81 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1396,14 +1396,6 @@ extern int net_msg_warn; | |||
1396 | lock_sock(sk); \ | 1396 | lock_sock(sk); \ |
1397 | } | 1397 | } |
1398 | 1398 | ||
1399 | static inline void sock_valbool_flag(struct sock *sk, int bit, int valbool) | ||
1400 | { | ||
1401 | if (valbool) | ||
1402 | sock_set_flag(sk, bit); | ||
1403 | else | ||
1404 | sock_reset_flag(sk, bit); | ||
1405 | } | ||
1406 | |||
1407 | extern __u32 sysctl_wmem_max; | 1399 | extern __u32 sysctl_wmem_max; |
1408 | extern __u32 sysctl_rmem_max; | 1400 | extern __u32 sysctl_rmem_max; |
1409 | 1401 | ||