tcp: Fix integer-overflows in TCP veno
[firefly-linux-kernel-4.4.55.git] / crypto / algif_hash.c
index 585c3b279feb406d7562d64eb4d09ee43328f1eb..850246206b1258a697f83e86c39acc9b0a17f973 100644 (file)
@@ -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;