mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
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 <tuxoko@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3685
This commit is contained in:
parent
9d4f86e825
commit
6d79eabf9f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user