mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
tree-wide: drop !! casts to booleans
Done by coccinelle/bool-cast.cocci
This commit is contained in:
parent
4e361acc06
commit
55033662f9
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user