mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 21:27:30 +01:00 
			
		
		
		
	unit: Drop un-needed null checks
both ap_sm and sta_sm are passed to eapol_register and eapol_start. No need to check for null here
This commit is contained in:
		
							parent
							
								
									5a65bc37fe
								
							
						
					
					
						commit
						8139b6bad7
					
				| @ -3589,11 +3589,8 @@ static void test_ap_sta_run(struct test_ap_sta_data *s) | ||||
| 					s->to_sta_data, len, false); | ||||
| 	} | ||||
| 
 | ||||
| 	if (s->ap_sm) | ||||
| 		eapol_sm_free(s->ap_sm); | ||||
| 
 | ||||
| 	if (s->sta_sm) | ||||
| 		eapol_sm_free(s->sta_sm); | ||||
| 	eapol_sm_free(s->ap_sm); | ||||
| 	eapol_sm_free(s->sta_sm); | ||||
| 
 | ||||
| 	eapol_exit(); | ||||
| 	eap_exit(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Denis Kenzior
						Denis Kenzior