simplify code

This commit is contained in:
Benjamin Peterson 2009-01-19 15:51:27 +00:00
parent 596d306950
commit 943a6ddc72
1 changed files with 2 additions and 4 deletions

View File

@ -6632,10 +6632,8 @@ posix_ftruncate(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
res = ftruncate(fd, length); res = ftruncate(fd, length);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
if (res < 0) { if (res < 0)
posix_error(); return posix_error();
return NULL;
}
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
} }