summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authortuxoko <[email protected]>2015-08-17 14:55:52 +0800
committerBrian Behlendorf <[email protected]>2015-08-19 11:28:41 -0700
commit6d79eabf9ff19b5c04fba735802b417389bdfa38 (patch)
treea26d5fa32e018ba0e7f35e44cdc6092f5091aa0c /module
parent9d4f86e82562960520ff8f05e85faeb9b417f5e8 (diff)
Add parenthesis to the ternary operator
Without the parenthesis, this particular ASSERT will evaluate to "(RW_READER == (!zap->zap_ismicro && fatreader)) ? RW_READER : lti" Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3685
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zap_micro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zap_micro.c b/module/zfs/zap_micro.c
index 8d920c2fa..29406e660 100644
--- a/module/zfs/zap_micro.c
+++ b/module/zfs/zap_micro.c
@@ -484,7 +484,7 @@ zap_lockdir(objset_t *os, uint64_t obj, dmu_tx_t *tx,
/* it was upgraded, now we only need reader */
ASSERT(lt == RW_WRITER);
ASSERT(RW_READER ==
- (!zap->zap_ismicro && fatreader) ? RW_READER : lti);
+ ((!zap->zap_ismicro && fatreader) ? RW_READER : lti));
rw_downgrade(&zap->zap_rwlock);
lt = RW_READER;
}