Slightly simplify assumptions in the code
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 6 23:06:41 UTC 2019 on sn-devel-184
if (req == NULL) {
/* Ensure req == NULL means INTERNAL_OPEN_ONLY */
- SMB_ASSERT(((oplock_request & INTERNAL_OPEN_ONLY) != 0));
+ SMB_ASSERT(oplock_request == INTERNAL_OPEN_ONLY);
} else {
/* And req != NULL means no INTERNAL_OPEN_ONLY */
SMB_ASSERT(((oplock_request & INTERNAL_OPEN_ONLY) == 0));