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:
Arne Welzel
2012-09-28 14:57:32 +02:00
committed by Ben Gras
parent be81e4ec74
commit 7e1074732b
+2 -1
View File
@@ -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);
}