Print this page
OS-1571 Placate gcc -Wparentheses
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/hyprlofs/hyprlofs_vfsops.c
          +++ new/usr/src/uts/common/fs/hyprlofs/hyprlofs_vfsops.c
↓ open down ↓ 266 lines elided ↑ open up ↑
 267  267          if ((uap->flags & MS_OVERLAY) == 0 &&
 268  268              (mvp->v_count != 1 || (mvp->v_flag & VROOT))) {
 269  269                  mutex_exit(&mvp->v_lock);
 270  270                  return (EBUSY);
 271  271          }
 272  272          mutex_exit(&mvp->v_lock);
 273  273  
 274  274          /* Having the resource be anything but "swap" doesn't make sense. */
 275  275          vfs_setresource(vfsp, "swap", 0);
 276  276  
 277      -        if (error = pn_get(uap->dir,
 278      -            (uap->flags & MS_SYSSPACE) ? UIO_SYSSPACE : UIO_USERSPACE, &dpn))
      277 +        if ((error = pn_get(uap->dir,
      278 +            (uap->flags & MS_SYSSPACE) ? UIO_SYSSPACE : UIO_USERSPACE,
      279 +            &dpn)) != 0)
 279  280                  goto out;
 280  281  
 281  282          if ((hm = hyprlofs_memalloc(sizeof (hlfsmount_t), 0)) == NULL) {
 282  283                  pn_free(&dpn);
 283  284                  error = ENOMEM;
 284  285                  goto out;
 285  286          }
 286  287  
 287  288          /* Get an available minor device number for this mount */
 288  289          mutex_enter(&hyprlofs_minor_lock);
↓ open down ↓ 337 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX