mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:vfs:gpfs: remove a block and reduce indentation in gpfs_is_offline()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
parent
d87d13f4c2
commit
eb0577dca0
@ -1801,6 +1801,7 @@ static bool vfs_gpfs_is_offline(struct vfs_handle_struct *handle,
|
||||
char *path = NULL;
|
||||
NTSTATUS status;
|
||||
struct gpfs_config_data *config;
|
||||
int ret;
|
||||
|
||||
SMB_VFS_HANDLE_GET_DATA(handle, config,
|
||||
struct gpfs_config_data,
|
||||
@ -1816,15 +1817,12 @@ static bool vfs_gpfs_is_offline(struct vfs_handle_struct *handle,
|
||||
return -1;
|
||||
}
|
||||
|
||||
{
|
||||
int ret;
|
||||
ret = get_gpfs_winattrs(path, &attrs);
|
||||
|
||||
if (ret == -1) {
|
||||
TALLOC_FREE(path);
|
||||
return false;
|
||||
}
|
||||
ret = get_gpfs_winattrs(path, &attrs);
|
||||
if (ret == -1) {
|
||||
TALLOC_FREE(path);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((attrs.winAttrs & GPFS_WINATTR_OFFLINE) != 0) {
|
||||
DEBUG(10, ("%s is offline\n", path));
|
||||
TALLOC_FREE(path);
|
||||
|
Loading…
Reference in New Issue
Block a user