mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
smbd: Avoid two else statements
We return in the if-clause Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
1b304efef2
commit
7153c2c445
@ -561,9 +561,11 @@ static uint32_t map_dir_offset_to_wire(struct dptr_struct *dptr, long offset)
|
||||
|
||||
if (offset == END_OF_DIRECTORY_OFFSET) {
|
||||
return WIRE_END_OF_DIRECTORY_OFFSET;
|
||||
} else if(offset == START_OF_DIRECTORY_OFFSET) {
|
||||
}
|
||||
if (offset == START_OF_DIRECTORY_OFFSET) {
|
||||
return WIRE_START_OF_DIRECTORY_OFFSET;
|
||||
} else if (offset == DOT_DOT_DIRECTORY_OFFSET) {
|
||||
}
|
||||
if (offset == DOT_DOT_DIRECTORY_OFFSET) {
|
||||
return WIRE_DOT_DOT_DIRECTORY_OFFSET;
|
||||
}
|
||||
if (sizeof(long) == 4) {
|
||||
|
Loading…
Reference in New Issue
Block a user