Print this page
OS-1571 Placate gcc -Wparentheses
Reviewed by: Robert Mustacchi <rm@joyent.com>
@@ -552,11 +552,12 @@
/*
* Get vnode for the real file/dir. We'll have a hold on realvp which
* we won't vn_rele until hyprlofs_inactive.
*/
- if (error = lookupname(fspath, UIO_SYSSPACE, FOLLOW, NULLVPP, &realvp))
+ if ((error = lookupname(fspath, UIO_SYSSPACE, FOLLOW, NULLVPP,
+ &realvp)) != 0)
return (error);
/* no devices allowed */
if (IS_DEVVP(realvp)) {
VN_RELE(realvp);
@@ -579,11 +580,11 @@
* important when fspath is a trigger AUTOFS node, since we're really
* interested in mounting the filesystem AUTOFS mounted as result of
* the VOP_ACCESS() call not the AUTOFS node itself.
*/
if (vn_mountedvfs(realvp) != NULL) {
- if (error = traverse(&realvp)) {
+ if ((error = traverse(&realvp)) != 0) {
VN_RELE(realvp);
return (error);
}
}