Skip to content

Commit

Permalink
vfs_ceph: Simplify SMB_VFS_FGET_DOS_ATTRIBUTES
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <[email protected]>
Reviewed-by: David Disseldorp <[email protected]>
  • Loading branch information
anoopcs9 committed Jun 3, 2024
1 parent 98b443d commit c36e79e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source3/modules/vfs_ceph.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,9 +1577,6 @@ static NTSTATUS cephwrap_fget_dos_attributes(struct vfs_handle_struct *handle,
NTSTATUS status;

status = fget_ea_dos_attribute(fsp, dosmode);
if (!NT_STATUS_IS_OK(status)) {
return status;
}

/*
* Restore previously stored btime from statx timestamps as it should be
Expand All @@ -1589,7 +1586,7 @@ static NTSTATUS cephwrap_fget_dos_attributes(struct vfs_handle_struct *handle,
*/
fsp->fsp_name->st.st_ex_btime = saved_btime;

return NT_STATUS_OK;
return status;
}

/****************************************************************
Expand Down

0 comments on commit c36e79e

Please sign in to comment.