diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-08 23:03:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 08:20:20 +0200 |
commit | ece174c5439021e32ebcc858842de9586072c006 (patch) | |
tree | b469235d6c4b195a6b53c7c5d97c0e516bfb4bc6 /src/login | |
parent | tree-wide: make use of log_error_errno() return value (diff) | |
download | systemd-ece174c5439021e32ebcc858842de9586072c006.tar.xz systemd-ece174c5439021e32ebcc858842de9586072c006.zip |
tree-wide: drop {} from one-line if blocks
Patch via coccinelle.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind-button.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind-button.c b/src/login/logind-button.c index cc98f5450e..f40e35a8cb 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -66,12 +66,11 @@ void button_free(Button *b) { sd_event_source_unref(b->io_event_source); sd_event_source_unref(b->check_event_source); - if (b->fd >= 0) { + if (b->fd >= 0) /* If the device has been unplugged close() returns * ENODEV, let's ignore this, hence we don't use * safe_close() */ (void) close(b->fd); - } free(b->name); free(b->seat); |