Commit 8083f0fc authored by Johannes Berg's avatar Johannes Berg Committed by David S. Miller

net: use sock_valbool_flag to set/clear SOCK_RXQ_OVFL

There's no point in open-coding sock_valbool_flag().
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5b1d8cd
...@@ -738,10 +738,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname, ...@@ -738,10 +738,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname,
/* We implement the SO_SNDLOWAT etc to /* We implement the SO_SNDLOWAT etc to
not be settable (1003.1g 5.3) */ not be settable (1003.1g 5.3) */
case SO_RXQ_OVFL: case SO_RXQ_OVFL:
if (valbool) sock_valbool_flag(sk, SOCK_RXQ_OVFL, valbool);
sock_set_flag(sk, SOCK_RXQ_OVFL);
else
sock_reset_flag(sk, SOCK_RXQ_OVFL);
break; break;
default: default:
ret = -ENOPROTOOPT; ret = -ENOPROTOOPT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment