summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/omap-sham.c
diff options
context:
space:
mode:
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>2011-06-02 20:10:08 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-06-30 01:44:03 +0200
commit171cb9a2807588630fed401f3e0b8ae22d91595f (patch)
tree2cc77a11e73f9d42022e866746438d319abf167a /drivers/crypto/omap-sham.c
parentcrypto: omap-sham - move some flags to device context (diff)
downloadlinux-171cb9a2807588630fed401f3e0b8ae22d91595f.tar.xz
linux-171cb9a2807588630fed401f3e0b8ae22d91595f.zip
crypto: omap-sham - remove unnecessary local variable
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/omap-sham.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c
index b959dc6dbbde..84e5890c57e9 100644
--- a/drivers/crypto/omap-sham.c
+++ b/drivers/crypto/omap-sham.c
@@ -1033,7 +1033,6 @@ static struct ahash_alg algs[] = {
static void omap_sham_done_task(unsigned long data)
{
struct omap_sham_dev *dd = (struct omap_sham_dev *)data;
- struct ahash_request *req = dd->req;
int ready = 0, err = 0;
if (test_and_clear_bit(FLAGS_OUTPUT_READY, &dd->flags))
@@ -1050,7 +1049,7 @@ static void omap_sham_done_task(unsigned long data)
if (err != -EINPROGRESS && (ready || err)) {
dev_dbg(dd->dev, "update done: err: %d\n", err);
/* finish curent request */
- omap_sham_finish_req(req, err);
+ omap_sham_finish_req(dd->req, err);
/* start new request */
omap_sham_handle_queue(dd, NULL);
}