VFS: resolve unused parameter if NOASSERTS="yes"
If VFS is compiled with NOASSERTS="yes", ctty_opcl() does not use the op parameter. Change to "non-assert()" sanity check.
This commit is contained in:
		
							parent
							
								
									be81e4ec74
								
							
						
					
					
						commit
						7e1074732b
					
				@ -623,7 +623,8 @@ int ctty_opcl(
 | 
			
		||||
 * /dev/tty, the magic device that translates to the controlling tty.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
  assert(!IS_BDEV_RQ(op));
 | 
			
		||||
  if (IS_BDEV_RQ(op))
 | 
			
		||||
	panic("ctty_opcl() called for block device request?");
 | 
			
		||||
 | 
			
		||||
  return(fp->fp_tty == 0 ? ENXIO : OK);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user