1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

vfs_gpfs: Remove function call from "if" statement

Follow the current coding guidelines to first issue the function call
and then check the return code.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Christof Schmitt 2020-01-16 12:15:29 -07:00 committed by Jeremy Allison
parent d9c992a7a9
commit 96252a0ec4

View File

@ -246,8 +246,8 @@ static int vfs_gpfs_setlease(vfs_handle_struct *handle,
struct gpfs_config_data,
return -1);
if (linux_set_lease_sighandler(fsp->fh->fd) == -1) {
ret = -1;
ret = linux_set_lease_sighandler(fsp->fh->fd);
if (ret == -1) {
goto failure;
}