mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	i2c: stm32f7_i2c: fix usage of useless local variable
Remove useless local variable "s" and use directly function's parameter "output" Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
		
				
					committed by
					
						 Heiko Schocher
						Heiko Schocher
					
				
			
			
				
	
			
			
			
						parent
						
							81c4843763
						
					
				
				
					commit
					d10bd6cfd8
				
			| @@ -640,7 +640,7 @@ static int stm32_i2c_compute_timing(struct stm32_i2c_priv *i2c_priv, | |||||||
| 				      struct stm32_i2c_setup *setup, | 				      struct stm32_i2c_setup *setup, | ||||||
| 				      struct stm32_i2c_timings *output) | 				      struct stm32_i2c_timings *output) | ||||||
| { | { | ||||||
| 	struct stm32_i2c_timings *v, *_v, s; | 	struct stm32_i2c_timings *v, *_v; | ||||||
| 	struct list_head solutions; | 	struct list_head solutions; | ||||||
| 	int ret; | 	int ret; | ||||||
|  |  | ||||||
| @@ -676,16 +676,10 @@ static int stm32_i2c_compute_timing(struct stm32_i2c_priv *i2c_priv, | |||||||
| 	if (ret) | 	if (ret) | ||||||
| 		goto exit; | 		goto exit; | ||||||
|  |  | ||||||
| 	ret = stm32_i2c_choose_solution(setup, &solutions, &s); | 	ret = stm32_i2c_choose_solution(setup, &solutions, output); | ||||||
| 	if (ret) | 	if (ret) | ||||||
| 		goto exit; | 		goto exit; | ||||||
|  |  | ||||||
| 	output->presc = s.presc; |  | ||||||
| 	output->scldel = s.scldel; |  | ||||||
| 	output->sdadel = s.sdadel; |  | ||||||
| 	output->scll = s.scll; |  | ||||||
| 	output->sclh = s.sclh; |  | ||||||
|  |  | ||||||
| 	debug("%s: Presc: %i, scldel: %i, sdadel: %i, scll: %i, sclh: %i\n", | 	debug("%s: Presc: %i, scldel: %i, sdadel: %i, scll: %i, sclh: %i\n", | ||||||
| 	      __func__, output->presc, | 	      __func__, output->presc, | ||||||
| 	      output->scldel, output->sdadel, | 	      output->scldel, output->sdadel, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user