From: YOSHIFUJI Hideaki/吉藤英明 Date: Mon, 23 Mar 2015 09:04:13 +0000 (+0900) Subject: net: Move the comment about unsettable socket-level options to default clause and... X-Git-Tag: v4.1-rc1~128^2~174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=443b5991a748c844610cb27f19473b56d5fc4dd1;p=platform%2Fkernel%2Flinux-exynos.git net: Move the comment about unsettable socket-level options to default clause and update its reference. We implement the SO_SNDLOWAT etc not to be settable and return ENOPROTOOPT per 1003.1g 7. Move the comment to appropriate position and update the reference. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/core/sock.c b/net/core/sock.c index 841108b..119ae46 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -928,8 +928,6 @@ set_rcvbuf: sk->sk_mark = val; break; - /* We implement the SO_SNDLOWAT etc to - not be settable (1003.1g 5.3) */ case SO_RXQ_OVFL: sock_valbool_flag(sk, SOCK_RXQ_OVFL, valbool); break; @@ -1234,6 +1232,9 @@ int sock_getsockopt(struct socket *sock, int level, int optname, break; default: + /* We implement the SO_SNDLOWAT etc to not be settable + * (1003.1g 7). + */ return -ENOPROTOOPT; }