diff options
Diffstat (limited to 'drivers/crypto/hifn_795x.c')
-rw-r--r-- | drivers/crypto/hifn_795x.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index 16fce3aadf4d..e449ac5627a5 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c | |||
@@ -2018,7 +2018,6 @@ static void hifn_flush(struct hifn_device *dev) | |||
2018 | { | 2018 | { |
2019 | unsigned long flags; | 2019 | unsigned long flags; |
2020 | struct crypto_async_request *async_req; | 2020 | struct crypto_async_request *async_req; |
2021 | struct hifn_context *ctx; | ||
2022 | struct ablkcipher_request *req; | 2021 | struct ablkcipher_request *req; |
2023 | struct hifn_dma *dma = (struct hifn_dma *)dev->desc_virt; | 2022 | struct hifn_dma *dma = (struct hifn_dma *)dev->desc_virt; |
2024 | int i; | 2023 | int i; |
@@ -2035,7 +2034,6 @@ static void hifn_flush(struct hifn_device *dev) | |||
2035 | 2034 | ||
2036 | spin_lock_irqsave(&dev->lock, flags); | 2035 | spin_lock_irqsave(&dev->lock, flags); |
2037 | while ((async_req = crypto_dequeue_request(&dev->queue))) { | 2036 | while ((async_req = crypto_dequeue_request(&dev->queue))) { |
2038 | ctx = crypto_tfm_ctx(async_req->tfm); | ||
2039 | req = container_of(async_req, struct ablkcipher_request, base); | 2037 | req = container_of(async_req, struct ablkcipher_request, base); |
2040 | spin_unlock_irqrestore(&dev->lock, flags); | 2038 | spin_unlock_irqrestore(&dev->lock, flags); |
2041 | 2039 | ||
@@ -2139,7 +2137,6 @@ static int hifn_setup_crypto_req(struct ablkcipher_request *req, u8 op, | |||
2139 | static int hifn_process_queue(struct hifn_device *dev) | 2137 | static int hifn_process_queue(struct hifn_device *dev) |
2140 | { | 2138 | { |
2141 | struct crypto_async_request *async_req, *backlog; | 2139 | struct crypto_async_request *async_req, *backlog; |
2142 | struct hifn_context *ctx; | ||
2143 | struct ablkcipher_request *req; | 2140 | struct ablkcipher_request *req; |
2144 | unsigned long flags; | 2141 | unsigned long flags; |
2145 | int err = 0; | 2142 | int err = 0; |
@@ -2156,7 +2153,6 @@ static int hifn_process_queue(struct hifn_device *dev) | |||
2156 | if (backlog) | 2153 | if (backlog) |
2157 | backlog->complete(backlog, -EINPROGRESS); | 2154 | backlog->complete(backlog, -EINPROGRESS); |
2158 | 2155 | ||
2159 | ctx = crypto_tfm_ctx(async_req->tfm); | ||
2160 | req = container_of(async_req, struct ablkcipher_request, base); | 2156 | req = container_of(async_req, struct ablkcipher_request, base); |
2161 | 2157 | ||
2162 | err = hifn_handle_req(req); | 2158 | err = hifn_handle_req(req); |