From: Christof Schmitt Date: Mon, 6 Jan 2020 20:53:13 +0000 (-0700) Subject: vfs_gpfs: Remove unncessary check from close function X-Git-Tag: ldb-2.1.0~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56cf9b15f0a42323d94a407a4de7fae9b039a326;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 52ca1a20954..2903b36ac39 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -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); }