core: shorten code a bit

This commit is contained in:
Yu Watanabe 2022-07-08 06:20:03 +09:00
parent 6a35d52d78
commit fe1ed553b3

View file

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