summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-11 17:10:24 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-11 17:10:24 +0100
commit2f438b4cdeaacf55b0832bf71b2ef15b30cdd758 (patch)
treef16cf64eed173a98211de135f8dfd542bfd507d8
parent676f3c1c5cc8c2790462ec618f821c31e34165c7 (diff)
downloadsamba-2f438b4cdeaacf55b0832bf71b2ef15b30cdd758.tar.gz
samba-2f438b4cdeaacf55b0832bf71b2ef15b30cdd758.tar.bz2
samba-2f438b4cdeaacf55b0832bf71b2ef15b30cdd758.zip
Remove unused variable, fix return.
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 38aee2c9d1..a3107d4672 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -702,7 +702,7 @@ sub Interface($$$)
$self->pidl("if (!NT_STATUS_IS_OK(status)) {");
$self->indent;
$self->pidl("PyErr_SetNTSTATUS(status);");
- $self->pidl("return;");
+ $self->pidl("return NULL;");
$self->deindent;
$self->pidl("}");
@@ -1181,7 +1181,6 @@ sub Parse($$$$$)
$self->pidl("{");
$self->indent;
$self->pidl("PyObject *m;");
- $self->pidl("NTSTATUS status;");
$self->pidl("");
foreach (@{$self->{ready_types}}) {