Commit 171cb9a2 authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by Herbert Xu

crypto: omap-sham - remove unnecessary local variable

Signed-off-by: default avatarDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ed3ea9a8
...@@ -1033,7 +1033,6 @@ static struct ahash_alg algs[] = { ...@@ -1033,7 +1033,6 @@ static struct ahash_alg algs[] = {
static void omap_sham_done_task(unsigned long data) static void omap_sham_done_task(unsigned long data)
{ {
struct omap_sham_dev *dd = (struct omap_sham_dev *)data; struct omap_sham_dev *dd = (struct omap_sham_dev *)data;
struct ahash_request *req = dd->req;
int ready = 0, err = 0; int ready = 0, err = 0;
if (test_and_clear_bit(FLAGS_OUTPUT_READY, &dd->flags)) if (test_and_clear_bit(FLAGS_OUTPUT_READY, &dd->flags))
...@@ -1050,7 +1049,7 @@ static void omap_sham_done_task(unsigned long data) ...@@ -1050,7 +1049,7 @@ static void omap_sham_done_task(unsigned long data)
if (err != -EINPROGRESS && (ready || err)) { if (err != -EINPROGRESS && (ready || err)) {
dev_dbg(dd->dev, "update done: err: %d\n", err); dev_dbg(dd->dev, "update done: err: %d\n", err);
/* finish curent request */ /* finish curent request */
omap_sham_finish_req(req, err); omap_sham_finish_req(dd->req, err);
/* start new request */ /* start new request */
omap_sham_handle_queue(dd, NULL); omap_sham_handle_queue(dd, NULL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment