summaryrefslogtreecommitdiff
path: root/src/libwpactrl
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwpactrl')
-rw-r--r--src/libwpactrl/wpactrl_start.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libwpactrl/wpactrl_start.c b/src/libwpactrl/wpactrl_start.c
index 80018d5..ac77870 100644
--- a/src/libwpactrl/wpactrl_start.c
+++ b/src/libwpactrl/wpactrl_start.c
@@ -34,17 +34,9 @@ int wpactrl_start (wpactrl_t *a, char const *path, unsigned int timeout, tain_t
return 1 ;
erra:
- {
- int e = errno ;
- fd_close(fda) ;
- errno = e ;
- }
+ fd_close(fda) ;
errs:
- {
- int e = errno ;
- fd_close(fds) ;
- errno = e ;
- }
+ fd_close(fds) ;
err:
return 0 ;
}