1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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:
Christof Schmitt 2020-01-06 13:53:13 -07:00 committed by Jeremy Allison
parent 5d5763ea8c
commit 56cf9b15f0

View File

@ -193,7 +193,7 @@ static int vfs_gpfs_close(vfs_handle_struct *handle, files_struct *fsp)
struct gpfs_config_data,
return -1);
if (config->sharemodes && (fsp->fh != NULL) && (fsp->fh->fd != -1)) {
if (config->sharemodes) {
set_gpfs_sharemode(fsp, 0, 0);
}