diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c index 585c3b279fe..850246206b1 100644 --- a/crypto/algif_hash.c +++ b/crypto/algif_hash.c @@ -114,9 +114,6 @@ static ssize_t hash_sendpage(struct socket *sock, struct page *page, struct hash_ctx *ctx = ask->private; int err; - if (flags & MSG_SENDPAGE_NOTLAST) - flags |= MSG_MORE; - if (flags & MSG_SENDPAGE_NOTLAST) flags |= MSG_MORE; diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 918a3b4148b..a19c027b29b 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -378,9 +378,6 @@ static ssize_t skcipher_sendpage(struct socket *sock, struct page *page, struct skcipher_sg_list *sgl; int err = -EINVAL; - if (flags & MSG_SENDPAGE_NOTLAST) - flags |= MSG_MORE; - if (flags & MSG_SENDPAGE_NOTLAST) flags |= MSG_MORE; diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 233f1911dc3..c3075b55224 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1070,9 +1070,6 @@ int udp_sendpage(struct sock *sk, struct page *page, int offset, struct udp_sock *up = udp_sk(sk); int ret; - if (flags & MSG_SENDPAGE_NOTLAST) - flags |= MSG_MORE; - if (flags & MSG_SENDPAGE_NOTLAST) flags |= MSG_MORE;