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:
parent
d9c992a7a9
commit
96252a0ec4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user