1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

s3: Assigning ?True:False to a bool is a bit pointless

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Volker Lendecke 2012-06-08 14:29:41 +02:00 committed by Michael Adam
parent 4aea0c1fa1
commit a3b4a5d779

View File

@ -776,12 +776,11 @@ static NTSTATUS open_file(files_struct *fsp,
fsp->vuid = req ? req->vuid : UID_FIELD_INVALID;
fsp->file_pid = req ? req->smbpid : 0;
fsp->can_lock = True;
fsp->can_read = (access_mask & FILE_READ_DATA) ? True : False;
fsp->can_read = ((access_mask & FILE_READ_DATA) != 0);
if (!CAN_WRITE(conn)) {
fsp->can_write = False;
} else {
fsp->can_write = (access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) ?
True : False;
fsp->can_write = ((access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) != 0);
}
fsp->print_file = NULL;
fsp->modified = False;