mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	media: tda8083: use time_is_after_jiffies() instead of open coding it
Use the helper function time_is_{before,after}_jiffies() to improve
code readability.
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
			
			
This commit is contained in:
		
							parent
							
								
									0ce32a2ce3
								
							
						
					
					
						commit
						39878a5959
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -162,7 +162,7 @@ static void tda8083_wait_diseqc_fifo (struct tda8083_state* state, int timeout) | |||
| { | ||||
| 	unsigned long start = jiffies; | ||||
| 
 | ||||
| 	while (jiffies - start < timeout && | ||||
| 	while (time_is_after_jiffies(start + timeout) && | ||||
| 	       !(tda8083_readreg(state, 0x02) & 0x80)) | ||||
| 	{ | ||||
| 		msleep(50); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Wang Qing
						Wang Qing