diff options
author | Struk, Tadeusz <tadeusz.struk@intel.com> | 2014-11-28 13:40:45 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-01 09:42:48 -0500 |
commit | 9ba0905f1740f4dbd26c51883511079944e9c97d (patch) | |
tree | dd1c6427093ef56e6fc9caa7f28349403439715e /crypto | |
parent | 1e104f9a251b46787c3efc2bc9c8c496dead294b (diff) |
crypto: algif_skcipher - removed unneeded code
Remover unneeded code.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/algif_skcipher.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index f80e652ef0d0..f2a88a7a71d3 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c | |||
@@ -359,8 +359,6 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock, | |||
359 | err = 0; | 359 | err = 0; |
360 | 360 | ||
361 | ctx->more = msg->msg_flags & MSG_MORE; | 361 | ctx->more = msg->msg_flags & MSG_MORE; |
362 | if (!ctx->more && !list_empty(&ctx->tsgl)) | ||
363 | sgl = list_entry(ctx->tsgl.prev, struct skcipher_sg_list, list); | ||
364 | 362 | ||
365 | unlock: | 363 | unlock: |
366 | skcipher_data_wakeup(sk); | 364 | skcipher_data_wakeup(sk); |
@@ -408,8 +406,6 @@ static ssize_t skcipher_sendpage(struct socket *sock, struct page *page, | |||
408 | 406 | ||
409 | done: | 407 | done: |
410 | ctx->more = flags & MSG_MORE; | 408 | ctx->more = flags & MSG_MORE; |
411 | if (!ctx->more && !list_empty(&ctx->tsgl)) | ||
412 | sgl = list_entry(ctx->tsgl.prev, struct skcipher_sg_list, list); | ||
413 | 409 | ||
414 | unlock: | 410 | unlock: |
415 | skcipher_data_wakeup(sk); | 411 | skcipher_data_wakeup(sk); |