diff options
author | Justin P. Mattock <justinmattock@gmail.com> | 2010-07-14 08:11:39 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-07-14 08:11:39 -0400 |
commit | 7e3de7b1be6ce0643f60aed697070e2286db32cd (patch) | |
tree | 508d81d9dbffceda49c71aeec965ecaeb1321db5 /drivers/crypto | |
parent | 8b9cfdca9c52f7d39c3ccfac1668e31c20c9f42e (diff) |
crypto: hifn_795x - Remove unused ctx variable
The below patch gets rid of an unused variable ctx reported by
GCC when building the kernel.
CC [M] drivers/crypto/hifn_795x.o
drivers/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
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/hifn_795x.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index 16fce3aadf4d..e449ac5627a5 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c | |||
@@ -2018,7 +2018,6 @@ static void hifn_flush(struct hifn_device *dev) | |||
2018 | { | 2018 | { |
2019 | unsigned long flags; | 2019 | unsigned long flags; |
2020 | struct crypto_async_request *async_req; | 2020 | struct crypto_async_request *async_req; |
2021 | struct hifn_context *ctx; | ||
2022 | struct ablkcipher_request *req; | 2021 | struct ablkcipher_request *req; |
2023 | struct hifn_dma *dma = (struct hifn_dma *)dev->desc_virt; | 2022 | struct hifn_dma *dma = (struct hifn_dma *)dev->desc_virt; |
2024 | int i; | 2023 | int i; |
@@ -2035,7 +2034,6 @@ static void hifn_flush(struct hifn_device *dev) | |||
2035 | 2034 | ||
2036 | spin_lock_irqsave(&dev->lock, flags); | 2035 | spin_lock_irqsave(&dev->lock, flags); |
2037 | while ((async_req = crypto_dequeue_request(&dev->queue))) { | 2036 | while ((async_req = crypto_dequeue_request(&dev->queue))) { |
2038 | ctx = crypto_tfm_ctx(async_req->tfm); | ||
2039 | req = container_of(async_req, struct ablkcipher_request, base); | 2037 | req = container_of(async_req, struct ablkcipher_request, base); |
2040 | spin_unlock_irqrestore(&dev->lock, flags); | 2038 | spin_unlock_irqrestore(&dev->lock, flags); |
2041 | 2039 | ||
@@ -2139,7 +2137,6 @@ static int hifn_setup_crypto_req(struct ablkcipher_request *req, u8 op, | |||
2139 | static int hifn_process_queue(struct hifn_device *dev) | 2137 | static int hifn_process_queue(struct hifn_device *dev) |
2140 | { | 2138 | { |
2141 | struct crypto_async_request *async_req, *backlog; | 2139 | struct crypto_async_request *async_req, *backlog; |
2142 | struct hifn_context *ctx; | ||
2143 | struct ablkcipher_request *req; | 2140 | struct ablkcipher_request *req; |
2144 | unsigned long flags; | 2141 | unsigned long flags; |
2145 | int err = 0; | 2142 | int err = 0; |
@@ -2156,7 +2153,6 @@ static int hifn_process_queue(struct hifn_device *dev) | |||
2156 | if (backlog) | 2153 | if (backlog) |
2157 | backlog->complete(backlog, -EINPROGRESS); | 2154 | backlog->complete(backlog, -EINPROGRESS); |
2158 | 2155 | ||
2159 | ctx = crypto_tfm_ctx(async_req->tfm); | ||
2160 | req = container_of(async_req, struct ablkcipher_request, base); | 2156 | req = container_of(async_req, struct ablkcipher_request, base); |
2161 | 2157 | ||
2162 | err = hifn_handle_req(req); | 2158 | err = hifn_handle_req(req); |