]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_gpfs: Remove unncessary check from close function
authorChristof Schmitt <cs@samba.org>
Mon, 6 Jan 2020 20:53:13 +0000 (13:53 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:36 +0000 (00:01 +0000)
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>
source3/modules/vfs_gpfs.c

index 52ca1a2095455951e6f5b94254d07cb84c915ec2..2903b36ac39428d69f21151c23c6488e0bd0e49b 100644 (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);
        }