diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-04-28 14:32:19 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2019-04-28 14:32:19 +0200 |
commit | 55033662f94baa3a1d0019f0f8398bd9d481e6be (patch) | |
tree | 70ec9eb84a39a948ba21b4b93e1b56bae415615a | |
parent | tree-wide: replace explicit NULL checks with their shorter variants (diff) | |
download | systemd-55033662f94baa3a1d0019f0f8398bd9d481e6be.tar.xz systemd-55033662f94baa3a1d0019f0f8398bd9d481e6be.zip |
tree-wide: drop !! casts to booleans
Done by coccinelle/bool-cast.cocci
-rw-r--r-- | src/shared/efivars.c | 2 | ||||
-rw-r--r-- | src/timesync/timesyncd-manager.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c index fc884dedf0..1bd8835633 100644 --- a/src/shared/efivars.c +++ b/src/shared/efivars.c @@ -514,7 +514,7 @@ int efi_get_boot_option( if (path) *path = TAKE_PTR(p); if (active) - *active = !!(header->attr & LOAD_OPTION_ACTIVE); + *active = header->attr & LOAD_OPTION_ACTIVE; return 0; } diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index 4c00fa409f..3c3a7fe69a 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -1024,7 +1024,7 @@ static int manager_network_event_handler(sd_event_source *s, int fd, uint32_t re sd_network_monitor_flush(m->network_monitor); /* When manager_network_read_link_servers() failed, we assume that the servers are changed. */ - changed = !!manager_network_read_link_servers(m); + changed = manager_network_read_link_servers(m); /* check if the machine is online */ online = network_is_online(); |