mirror of
https://github.com/systemd/systemd.git
synced 2024-12-03 15:23:36 +08:00
core: shorten code a bit
This commit is contained in:
parent
6a35d52d78
commit
fe1ed553b3
@ -1439,12 +1439,11 @@ int bus_cgroup_set_property(
|
||||
|
||||
} else if (STR_IN_SET(name, "BlockIOReadBandwidth", "BlockIOWriteBandwidth")) {
|
||||
const char *path;
|
||||
bool read = true;
|
||||
unsigned n = 0;
|
||||
uint64_t u64;
|
||||
bool read;
|
||||
|
||||
if (streq(name, "BlockIOWriteBandwidth"))
|
||||
read = false;
|
||||
read = streq(name, "BlockIOReadBandwidth");
|
||||
|
||||
r = sd_bus_message_enter_container(message, 'a', "(st)");
|
||||
if (r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user