diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-27 21:22:36 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-27 21:22:36 +0200 |
commit | d2efc245f6885d00aa3cd442a18af829d8f1114e (patch) | |
tree | 1371892765e91604db9eb8dd8222a3041c241131 /psutil/_psutil_linux.c | |
parent | c8bf8c87b4c6990393349247010fcc8e87c9c0e5 (diff) | |
download | psutil-d2efc245f6885d00aa3cd442a18af829d8f1114e.tar.gz |
linux / c: small refactoring
Diffstat (limited to 'psutil/_psutil_linux.c')
-rw-r--r-- | psutil/_psutil_linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c index a7eb789b..22fb4986 100644 --- a/psutil/_psutil_linux.c +++ b/psutil/_psutil_linux.c @@ -534,8 +534,7 @@ psutil_net_if_duplex_speed(PyObject* self, PyObject* args) { error: if (sock != -1) close(sock); - PyErr_SetFromErrno(PyExc_OSError); - return NULL; + return PyErr_SetFromErrno(PyExc_OSError); } |