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_dir.c
          +++ new/usr/src/uts/common/fs/hyprlofs/hyprlofs_dir.c
↓ open down ↓ 299 lines elided ↑ open up ↑
 300  300                  panic("hyprlofs_dirdelete: NULL name for %p", (void *)hp);
 301  301  
 302  302          /* return error if removing . or .. */
 303  303          if (nm[0] == '.') {
 304  304                  if (nm[1] == '\0')
 305  305                          return (EINVAL);
 306  306                  if (nm[1] == '.' && nm[2] == '\0')
 307  307                          return (EEXIST); /* thus in ufs */
 308  308          }
 309  309  
 310      -        if (error = hyprlofs_taccess(dir, VEXEC|VWRITE, cr))
      310 +        if ((error = hyprlofs_taccess(dir, VEXEC|VWRITE, cr)) != 0)
 311  311                  return (error);
 312  312  
 313  313          if (dir->hln_dir == NULL)
 314  314                  return (ENOENT);
 315  315  
 316  316          hpdp = hyprlofs_hash_lookup(nm, dir, 0, &hnp);
 317  317          if (hpdp == NULL) {
 318  318                  /*
 319  319                   * If it is gone, some other thread got here first!
 320  320                   * Return error ENOENT.
↓ open down ↓ 320 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX