mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
vfs_gpfs: Remove unncessary check from close function
The fsp has a valid file descriptor when this function is called. No need for the additional check. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5d5763ea8c
commit
56cf9b15f0
@ -193,7 +193,7 @@ static int vfs_gpfs_close(vfs_handle_struct *handle, files_struct *fsp)
|
|||||||
struct gpfs_config_data,
|
struct gpfs_config_data,
|
||||||
return -1);
|
return -1);
|
||||||
|
|
||||||
if (config->sharemodes && (fsp->fh != NULL) && (fsp->fh->fd != -1)) {
|
if (config->sharemodes) {
|
||||||
set_gpfs_sharemode(fsp, 0, 0);
|
set_gpfs_sharemode(fsp, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user