mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
kdbus: minor simplification
This commit is contained in:
parent
54e2e63dd2
commit
0a9f1fd79b
@ -911,13 +911,12 @@ int bus_kernel_connect(sd_bus *b) {
|
||||
}
|
||||
|
||||
static void close_kdbus_msg(sd_bus *bus, struct kdbus_msg *k) {
|
||||
struct kdbus_cmd_free cmd;
|
||||
struct kdbus_cmd_free cmd = {};
|
||||
struct kdbus_item *d;
|
||||
|
||||
assert(bus);
|
||||
assert(k);
|
||||
|
||||
cmd.flags = 0;
|
||||
cmd.offset = (uint8_t *)k - (uint8_t *)bus->kdbus_buffer;
|
||||
|
||||
KDBUS_ITEM_FOREACH(d, k, items) {
|
||||
|
Loading…
Reference in New Issue
Block a user