mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
libsmb: Use tevent_req_simple_finish_ntstatus() in cli_unlink_done()
Save a few lines of code Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5c8312f8e8
commit
f8eb754561
@ -1920,16 +1920,9 @@ struct tevent_req *cli_unlink_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
static void cli_unlink_done(struct tevent_req *subreq)
|
||||
{
|
||||
struct tevent_req *req = tevent_req_callback_data(
|
||||
subreq, struct tevent_req);
|
||||
NTSTATUS status;
|
||||
|
||||
status = cli_smb_recv(subreq, NULL, NULL, 0, NULL, NULL, NULL, NULL);
|
||||
TALLOC_FREE(subreq);
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return;
|
||||
}
|
||||
tevent_req_done(req);
|
||||
NTSTATUS status = cli_smb_recv(
|
||||
subreq, NULL, NULL, 0, NULL, NULL, NULL, NULL);
|
||||
tevent_req_simple_finish_ntstatus(subreq, status);
|
||||
}
|
||||
|
||||
static void cli_unlink_done2(struct tevent_req *subreq)
|
||||
|
Loading…
Reference in New Issue
Block a user