mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	crypto: mxs-dcp - remove set but not used variable 'fini'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/crypto/mxs-dcp.c: In function 'dcp_chan_thread_sha':
drivers/crypto/mxs-dcp.c:707:11: warning:
 variable 'fini' set but not used [-Wunused-but-set-variable]
It's not used since commit d80771c083 ("crypto: mxs-dcp - Fix wait
logic on chan threads"),so can be removed.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
			
			
This commit is contained in:
		
							parent
							
								
									222f6b8567
								
							
						
					
					
						commit
						11fe71f146
					
				
					 1 changed files with 1 additions and 9 deletions
				
			
		| 
						 | 
					@ -700,11 +700,7 @@ static int dcp_chan_thread_sha(void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct crypto_async_request *backlog;
 | 
						struct crypto_async_request *backlog;
 | 
				
			||||||
	struct crypto_async_request *arq;
 | 
						struct crypto_async_request *arq;
 | 
				
			||||||
 | 
						int ret;
 | 
				
			||||||
	struct dcp_sha_req_ctx *rctx;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	struct ahash_request *req;
 | 
					 | 
				
			||||||
	int ret, fini;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	while (!kthread_should_stop()) {
 | 
						while (!kthread_should_stop()) {
 | 
				
			||||||
		set_current_state(TASK_INTERRUPTIBLE);
 | 
							set_current_state(TASK_INTERRUPTIBLE);
 | 
				
			||||||
| 
						 | 
					@ -725,11 +721,7 @@ static int dcp_chan_thread_sha(void *data)
 | 
				
			||||||
			backlog->complete(backlog, -EINPROGRESS);
 | 
								backlog->complete(backlog, -EINPROGRESS);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (arq) {
 | 
							if (arq) {
 | 
				
			||||||
			req = ahash_request_cast(arq);
 | 
					 | 
				
			||||||
			rctx = ahash_request_ctx(req);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			ret = dcp_sha_req_to_buf(arq);
 | 
								ret = dcp_sha_req_to_buf(arq);
 | 
				
			||||||
			fini = rctx->fini;
 | 
					 | 
				
			||||||
			arq->complete(arq, ret);
 | 
								arq->complete(arq, ret);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue