smbd: Convert driver_unlink_internals to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:50:51 +0000 (11:50 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:03 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/nt_printing.c

index 1539b89a0e81b2bae7f8fc79c9b24aaed67eb243..7a1f36549fe47a7b91173325161c65ff3951d082 100644 (file)
@@ -1556,9 +1556,8 @@ static NTSTATUS driver_unlink_internals(connection_struct *conn,
                goto err_out;
        }
 
-       status = create_synthetic_smb_fname(tmp_ctx, print_dlr_path,
-                                           NULL, NULL, &smb_fname);
-       if (!NT_STATUS_IS_OK(status)) {
+       smb_fname = synthetic_smb_fname(tmp_ctx, print_dlr_path, NULL, NULL);
+       if (smb_fname == NULL) {
                goto err_out;
        }