X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbus-driverd%2Fbus-driverd.c;h=7e0ad1e0c05111235d12cf17b75fd74951e3873c;hp=46a5b10974847b8384e95f4b9a7592cfa5686f95;hb=950f87b7e569a12c3ee18b38017ccac830ae474e;hpb=9130f2128b64de19a3b7d6db7e0d371adfd296c2;ds=sidebyside diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c index 46a5b1097..7e0ad1e0c 100644 --- a/src/bus-driverd/bus-driverd.c +++ b/src/bus-driverd/bus-driverd.c @@ -130,10 +130,7 @@ static int match_new(Client *c, struct bus_match_component *components, unsigned first = hashmap_get(c->matches, m->match); LIST_PREPEND(matches, first, m); r = hashmap_replace(c->matches, m->match, first); - if (r == 0) { - log_debug("Match '%s' already installed, ignoring request.", m->match); - LIST_REMOVE(matches, first, m); - } else if (r < 0) { + if (r < 0) { LIST_REMOVE(matches, first, m); goto fail; }