From: Johannes Berg Date: Fri, 7 Oct 2011 03:30:20 +0000 (+0000) Subject: net: use sock_valbool_flag to set/clear SOCK_RXQ_OVFL X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8083f0fc969d9b5353061a7a6f963405057e26b1;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Neil Horman Signed-off-by: David S. Miller --- 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;