tree-wide: drop !! casts to booleans

Done by coccinelle/bool-cast.cocci
This commit is contained in:
Frantisek Sumsal 2019-04-28 14:32:19 +02:00
parent 4e361acc06
commit 55033662f9
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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();