summaryrefslogtreecommitdiff
path: root/src/bus-driverd/bus-driverd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-01-08 23:07:28 +0800
committerKay Sievers <kay@vrfy.org>2014-01-08 23:07:28 +0800
commit950f87b7e569a12c3ee18b38017ccac830ae474e (patch)
tree7cc439a1f32587ed9fc731ecfbacac473b07c8d6 /src/bus-driverd/bus-driverd.c
parent9130f2128b64de19a3b7d6db7e0d371adfd296c2 (diff)
Revert "bus-driverd: do not track identical matches"
This reverts commit 234e28aa1cd37dee597c719ac5ca004c6215d28c.
Diffstat (limited to 'src/bus-driverd/bus-driverd.c')
-rw-r--r--src/bus-driverd/bus-driverd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 46a5b10974..7e0ad1e0c0 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;
}