crypto: omap-sham - remove unused code
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Thu, 2 Jun 2011 18:10:04 +0000 (21:10 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:44:02 +0000 (07:44 +0800)
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c

index 8a45fb713250d31ede2389e5dc4929867449cda6..ac12a608d50298ed0ba642560022a6fc6c075b8b 100644 (file)
@@ -658,7 +658,6 @@ static int omap_sham_handle_queue(struct omap_sham_dev *dd,
 {
        struct crypto_async_request *async_req, *backlog;
        struct omap_sham_reqctx *ctx;
-       struct ahash_request *prev_req;
        unsigned long flags;
        int err = 0, ret = 0;
 
@@ -682,16 +681,12 @@ static int omap_sham_handle_queue(struct omap_sham_dev *dd,
                backlog->complete(backlog, -EINPROGRESS);
 
        req = ahash_request_cast(async_req);
-
-       prev_req = dd->req;
        dd->req = req;
-
        ctx = ahash_request_ctx(req);
 
        dev_dbg(dd->dev, "handling new req, op: %lu, nbytes: %d\n",
                                                ctx->op, req->nbytes);
 
-
        err = omap_sham_hw_init(dd);
        if (err)
                goto err1;