commit | 943a6ddc72e1e23de87ca73f75a0ce31fe55924b | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Jan 19 15:51:27 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Jan 19 15:51:27 2009 +0000 |
tree | 9c3bd964f497fb163312c9465c4778abb6a51b1c | |
parent | 596d30695082ee9798f3ad9974b306687cd757bd [diff] |
simplify code
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 915d30d..cda8135 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -6632,10 +6632,8 @@ Py_BEGIN_ALLOW_THREADS res = ftruncate(fd, length); Py_END_ALLOW_THREADS - if (res < 0) { - posix_error(); - return NULL; - } + if (res < 0) + return posix_error(); Py_INCREF(Py_None); return Py_None; }