diff options
-rw-r--r-- | drivers/crypto/omap-sham.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index eb988e7a2fd9..2e71123516e0 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c | |||
@@ -664,7 +664,7 @@ static void omap_sham_finish_req(struct ahash_request *req, int err) | |||
664 | static int omap_sham_handle_queue(struct omap_sham_dev *dd, | 664 | static int omap_sham_handle_queue(struct omap_sham_dev *dd, |
665 | struct ahash_request *req) | 665 | struct ahash_request *req) |
666 | { | 666 | { |
667 | struct crypto_async_request *async_req, *backlog = 0; | 667 | struct crypto_async_request *async_req, *backlog; |
668 | struct omap_sham_reqctx *ctx; | 668 | struct omap_sham_reqctx *ctx; |
669 | struct ahash_request *prev_req; | 669 | struct ahash_request *prev_req; |
670 | unsigned long flags; | 670 | unsigned long flags; |
@@ -677,11 +677,10 @@ static int omap_sham_handle_queue(struct omap_sham_dev *dd, | |||
677 | spin_unlock_irqrestore(&dd->lock, flags); | 677 | spin_unlock_irqrestore(&dd->lock, flags); |
678 | return ret; | 678 | return ret; |
679 | } | 679 | } |
680 | backlog = crypto_get_backlog(&dd->queue); | ||
680 | async_req = crypto_dequeue_request(&dd->queue); | 681 | async_req = crypto_dequeue_request(&dd->queue); |
681 | if (async_req) { | 682 | if (async_req) |
682 | dd->flags |= FLAGS_BUSY; | 683 | dd->flags |= FLAGS_BUSY; |
683 | backlog = crypto_get_backlog(&dd->queue); | ||
684 | } | ||
685 | spin_unlock_irqrestore(&dd->lock, flags); | 684 | spin_unlock_irqrestore(&dd->lock, flags); |
686 | 685 | ||
687 | if (!async_req) | 686 | if (!async_req) |