mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	[sms] trivial: Removed unneeded double check in unbcdify
This commit is contained in:
		
				
					committed by
					
						
						Harald Welte
					
				
			
			
				
	
			
			
			
						parent
						
							a897bf3ded
						
					
				
				
					commit
					ad69d7f8b2
				
			@@ -218,8 +218,7 @@ static u_int8_t unbcdify(u_int8_t value)
 | 
			
		||||
		DEBUGP(DSMS, "unbcdify got too big nibble: 0x%02X\n", value);
 | 
			
		||||
 | 
			
		||||
	ret = (value&0x0F)*10;
 | 
			
		||||
	if (ret > 90)
 | 
			
		||||
		ret += value>>4;
 | 
			
		||||
	ret += value>>4;
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user