libsmb: call directly tevent_req_simple_finish_ntstatus
authorMatthieu Patou <mat@matws.net>
Sun, 5 May 2013 21:53:40 +0000 (14:53 -0700)
committerStefan Metzmacher <metze@samba.org>
Mon, 6 May 2013 06:35:10 +0000 (08:35 +0200)
The CC compiler on openindiana is not pleased with a void function doing
a return of another void function.

It should help the build of openindiana on the buildfarm

Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon May  6 08:35:10 CEST 2013 on sn-devel-104

source3/libsmb/cliconnect.c

index 3242d8c965d234f619436184b7bc42ef3ef46197..7179c4f209dbc442d9a86f6bb54841e11520e557 100644 (file)
@@ -2687,13 +2687,13 @@ static struct tevent_req *cli_tree_connect_send(
 
 static void cli_tree_connect_smb2_done(struct tevent_req *subreq)
 {
-       return tevent_req_simple_finish_ntstatus(
+       tevent_req_simple_finish_ntstatus(
                subreq, smb2cli_tcon_recv(subreq));
 }
 
 static void cli_tree_connect_andx_done(struct tevent_req *subreq)
 {
-       return tevent_req_simple_finish_ntstatus(
+       tevent_req_simple_finish_ntstatus(
                subreq, cli_tcon_andx_recv(subreq));
 }