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

s3: Simplify get_delete_on_close_token more

All remaining callers actually want the token

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke
2012-06-01 15:52:14 +02:00
committed by Stefan Metzmacher
parent 103b89fb07
commit dec08b8041

View File

@ -1081,12 +1081,8 @@ bool get_delete_on_close_token(struct share_mode_lock *lck,
if (dt == NULL) {
return false;
}
if (pp_nt_tok) {
*pp_nt_tok = dt->delete_nt_token;
}
if (pp_tok) {
*pp_tok = dt->delete_token;
}
*pp_nt_tok = dt->delete_nt_token;
*pp_tok = dt->delete_token;
return true;
}