diff options
author | Brian Behlendorf <[email protected]> | 2010-12-16 14:05:42 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-01-06 15:04:28 -0800 |
commit | 149e873ab174ded1f632f2b2eb2267593517c7ca (patch) | |
tree | cfc9d55c194367dd5e7407112103b65baca9e230 /module/zfs/zfs_dir.c | |
parent | 683fe41fc718fd43f57aa9ca76457fe34e62057c (diff) |
Fix minor compiler warnings
These compiler warnings were introduced when code which was
previously #ifdef'ed out by HAVE_ZPL was re-added for use
by the posix layer. All of the following changes should be
obviously correct and will cause no semantic changes.
Diffstat (limited to 'module/zfs/zfs_dir.c')
-rw-r--r-- | module/zfs/zfs_dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/zfs_dir.c b/module/zfs/zfs_dir.c index f0084cd4e..a1f3df1a0 100644 --- a/module/zfs/zfs_dir.c +++ b/module/zfs/zfs_dir.c @@ -153,9 +153,9 @@ zfs_dirent_lock(zfs_dirlock_t **dlpp, znode_t *dzp, char *name, znode_t **zpp, /* * Verify that we are not trying to lock '.', '..', or '.zfs' */ - if (name[0] == '.' && - (name[1] == '\0' || (name[1] == '.' && name[2] == '\0')) || - zfs_has_ctldir(dzp) && strcmp(name, ZFS_CTLDIR_NAME) == 0) + if ((name[0] == '.' && + (name[1] == '\0' || (name[1] == '.' && name[2] == '\0'))) || + (zfs_has_ctldir(dzp) && strcmp(name, ZFS_CTLDIR_NAME) == 0)) return (EEXIST); /* |