Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information