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-27 22:22:06 +02:00 committed by Ben Gras
parent be81e4ec74
commit 7e1074732b

View file

@ -623,7 +623,8 @@ int ctty_opcl(
* /dev/tty, the magic device that translates to the controlling tty. * /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); return(fp->fp_tty == 0 ? ENXIO : OK);
} }