Skip to content

Commit

Permalink
crypto: algif_skcipher - removed unneeded code
Browse files Browse the repository at this point in the history
Remover unneeded code.

Signed-off-by: Tadeusz Struk <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
tstruk authored and herbertx committed Dec 1, 2014
1 parent 1e104f9 commit 9ba0905
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crypto/algif_skcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock,
err = 0;

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:
skcipher_data_wakeup(sk);
Expand Down Expand Up @@ -408,8 +406,6 @@ static ssize_t skcipher_sendpage(struct socket *sock, struct page *page,

done:
ctx->more = flags & MSG_MORE;
if (!ctx->more && !list_empty(&ctx->tsgl))
sgl = list_entry(ctx->tsgl.prev, struct skcipher_sg_list, list);

unlock:
skcipher_data_wakeup(sk);
Expand Down

0 comments on commit 9ba0905

Please sign in to comment.