git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
051b912
)
smbd: Remove a silly "? true : false"
author
Volker Lendecke
<vl@samba.org>
Mon, 2 Sep 2013 09:40:46 +0000
(09:40 +0000)
committer
Michael Adam
<obnox@samba.org>
Fri, 6 Sep 2013 11:40:58 +0000
(13:40 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index fc6a94c5e884311d4d6878199e1292c6ba610387..6ced3c2c39a5c1e96889a5c8babccd14e7a7fbdb 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-1355,7
+1355,7
@@
static bool file_has_brlocks(files_struct *fsp)
if (!br_lck)
return false;
- return
br_lck->num_locks > 0 ? true : false
;
+ return
(br_lck->num_locks > 0)
;
}
static void grant_fsp_oplock_type(files_struct *fsp,