diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-10-07 03:30:20 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-07 13:27:07 -0400 |
commit | 8083f0fc969d9b5353061a7a6f963405057e26b1 (patch) | |
tree | 8ec5cfc3545d14275f25c218f2013fca3f0ff447 /net/core/sock.c | |
parent | d5b1d8cd8f32c5fd0baa7c264091d1abbf17c03c (diff) |
net: use sock_valbool_flag to set/clear SOCK_RXQ_OVFL
There's no point in open-coding sock_valbool_flag().
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index b29ab61b029c..83c462d3f451 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -738,10 +738,7 @@ set_rcvbuf: /* We implement the SO_SNDLOWAT etc to not be settable (1003.1g 5.3) */ case SO_RXQ_OVFL: - if (valbool) - sock_set_flag(sk, SOCK_RXQ_OVFL); - else - sock_reset_flag(sk, SOCK_RXQ_OVFL); + sock_valbool_flag(sk, SOCK_RXQ_OVFL, valbool); break; default: ret = -ENOPROTOOPT; |