Commit 9ba0905f authored by Struk, Tadeusz's avatar Struk, Tadeusz Committed by Herbert Xu

crypto: algif_skcipher - removed unneeded code

Remover unneeded code.
Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1e104f9a
...@@ -359,8 +359,6 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock, ...@@ -359,8 +359,6 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock,
err = 0; err = 0;
ctx->more = msg->msg_flags & MSG_MORE; ctx->more = msg->msg_flags & MSG_MORE;
if (!ctx->more && !list_empty(&ctx->tsgl))
sgl = list_entry(ctx->tsgl.prev, struct skcipher_sg_list, list);
unlock: unlock:
skcipher_data_wakeup(sk); skcipher_data_wakeup(sk);
...@@ -408,8 +406,6 @@ static ssize_t skcipher_sendpage(struct socket *sock, struct page *page, ...@@ -408,8 +406,6 @@ static ssize_t skcipher_sendpage(struct socket *sock, struct page *page,
done: done:
ctx->more = flags & MSG_MORE; ctx->more = flags & MSG_MORE;
if (!ctx->more && !list_empty(&ctx->tsgl))
sgl = list_entry(ctx->tsgl.prev, struct skcipher_sg_list, list);
unlock: unlock:
skcipher_data_wakeup(sk); skcipher_data_wakeup(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment