crypto:hifn_795x.c Fix warning: variable 'ctx' set but not used
PATCH v2 1/1 crypto:hifn_795x.c Fix warning: variable 'ctx' set but not used
This is version two of fixing a warning message from GCC
CC [M] drivers/crypto/hifn_795x.odrivers/crypto/hifn_795x.c: In function 'hifn_flush':drivers/crypto/hifn_795x.c:2021:23: warning: variable 'ctx' set but not used drivers/crypto/hifn_795x.c: In function 'hifn_process_queue':drivers/crypto/hifn_795x.c:2142:23: warning: variable 'ctx' set but not used just remove the line that initialises ctx.
Signed-off-by Justin P. Mattock <[email protected]>
--- drivers/crypto/hifn_795x.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/crypto/hifn_795x.c +2 -4
@@ -2018,7 +2018,6 @@ static void hifn_flush(struct hifn_device *dev) {unsigned long flags;struct crypto_async_request *async_req; -struct hifn_context *ctx;struct ablkcipher_request *req;struct hifn_dma *dma = (struct hifn_dma *)dev->desc_virt;int i;
@@ -2035,7 +2034,7 @@ static void hifn_flush(struct hifn_device *dev)spin_lock_irqsave (&dev->lock, flags);while ((async_req =crypto_dequeue_request (&dev->queue))) { - ctx =crypto_tfm_ctx (async_req->tfm); +crypto_tfm_ctx (async_req->tfm); req = container_of(async_req, struct ablkcipher_request, base);spin_unlock_irqrestore (&dev->lock, flags);
@@ -2139,7 +2138,6 @@ static int hifn_setup_crypto_req(struct ablkcipher_request *req, u8 op,static int hifn_process_queue (struct hifn_device *dev) {struct crypto_async_request *async_req, *backlog; -struct hifn_context *ctx;struct ablkcipher_request *req;unsigned long flags;int err =0 ;
@@ -2156,7 +2154,7 @@ static int hifn_process_queue(struct hifn_device *dev)if (backlog) backlog->complete (backlog, -EINPROGRESS ); - ctx =crypto_tfm_ctx (async_req->tfm); +crypto_tfm_ctx (async_req->tfm); req = container_of(async_req, struct ablkcipher_request, base); err =hifn_handle_req (req);
Signature · 1 line
1.7.1.rc1.21.gf3bd6
drivers/crypto/hifn_795x.c static void hifn_flush(struct hifn_device *dev) · line 2037
Quoted 6 lines · On Tue, 6 Jul 2010 09:59:38 -0700 "Justin P. Mattock"…
drivers/crypto/hifn_795x.c +1
-1@@ -2035,7 +2034,7 @@ static void hifn_flush(struct hifn_device *dev)spin_lock_irqsave (&dev->lock, flags);while ((async_req =crypto_dequeue_request (&dev->queue))) { - ctx =crypto_tfm_ctx (async_req->tfm); +crypto_tfm_ctx (async_req->tfm);
delete the entire line.
Review static void hifn_flush(struct hifn_device *dev) · line 2038
Quoted 2 lines
(quoted diff) +1
-1- ctx = crypto_tfm_ctx(async_req->tfm); + crypto_tfm_ctx(async_req->tfm);
here too.
Kim