From f3de19af0f5b18dcbb6d445db02120656ebf9cfb Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Wed, 16 Jan 2019 10:39:27 +0800 Subject: [PATCH] net/tls: remove unused function tls_sw_sendpage_locked There are no in-tree callers. Signed-off-by: YueHaibing Signed-off-by: David S. Miller --- net/tls/tls_sw.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index 11cdc8f7db63..c4755388ed03 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -1143,16 +1143,6 @@ sendpage_end: return copied ? copied : ret; } -int tls_sw_sendpage_locked(struct sock *sk, struct page *page, - int offset, size_t size, int flags) -{ - if (flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL | - MSG_SENDPAGE_NOTLAST | MSG_SENDPAGE_NOPOLICY)) - return -ENOTSUPP; - - return tls_sw_do_sendpage(sk, page, offset, size, flags); -} - int tls_sw_sendpage(struct sock *sk, struct page *page, int offset, size_t size, int flags) { -- 2.39.5