remove useless muldiv64()
muldiv64(a, 1, b) is like "a / b". This patch is the result of coccinelle script scripts/coccinelle/remove_muldiv64.cocci. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
		
							parent
							
								
									3498686220
								
							
						
					
					
						commit
						cd1f16f947
					
				@ -1474,7 +1474,7 @@ static uint32_t ohci_get_frame_remaining(OHCIState *ohci)
 | 
				
			|||||||
    if (tks >= usb_frame_time)
 | 
					    if (tks >= usb_frame_time)
 | 
				
			||||||
        return (ohci->frt << 31);
 | 
					        return (ohci->frt << 31);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tks = muldiv64(tks, 1, usb_bit_time);
 | 
					    tks = tks / usb_bit_time;
 | 
				
			||||||
    fr = (uint16_t)(ohci->fi - tks);
 | 
					    fr = (uint16_t)(ohci->fi - tks);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return (ohci->frt << 31) | fr;
 | 
					    return (ohci->frt << 31) | fr;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user