mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	lib: remove redundant assignment to variable ret
Variable ret is being assigned a value that is never read. If the for-loop is entered then ret is immediately re-assigned a new value. If the for-loop is not executed ret is never read. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
This commit is contained in:
		
							parent
							
								
									84cc695897
								
							
						
					
					
						commit
						d99a8af48a
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -164,8 +164,6 @@ asn1_encode_oid(unsigned char *data, const unsigned char *end_data, | ||||||
| 
 | 
 | ||||||
| 	data_len -= 3; | 	data_len -= 3; | ||||||
| 
 | 
 | ||||||
| 	ret = 0; |  | ||||||
| 
 |  | ||||||
| 	for (i = 2; i < oid_len; i++) { | 	for (i = 2; i < oid_len; i++) { | ||||||
| 		ret = asn1_encode_oid_digit(&d, &data_len, oid[i]); | 		ret = asn1_encode_oid_digit(&d, &data_len, oid[i]); | ||||||
| 		if (ret < 0) | 		if (ret < 0) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Colin Ian King
						Colin Ian King