summaryrefslogtreecommitdiff
path: root/net/core/utils.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-04-28 11:58:17 +0100
committerDavid S. Miller <davem@davemloft.net>2022-05-01 12:19:01 +0100
commit14bfee9b62702ccac3014f1291943fabebafd5bc (patch)
treeb52d5c6ed00ce1113620a4b9c13fed2cc3151be1 /net/core/utils.c
parent0ed99ecc95b9c1d3c46d3bc34459088e82caef32 (diff)
downloadlinux-14bfee9b62702ccac3014f1291943fabebafd5bc.tar.gz
linux-14bfee9b62702ccac3014f1291943fabebafd5bc.tar.bz2
linux-14bfee9b62702ccac3014f1291943fabebafd5bc.zip
sock: dedup sock_def_write_space wmem_alloc checks
Except for minor rounding differences the first ->sk_wmem_alloc test in sock_def_write_space() is a hand coded version of sock_writeable(). Replace it with the helper, and also kill the following if duplicating the check. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions