diff options
Diffstat (limited to 'lib/util/server_id.c')
-rw-r--r-- | lib/util/server_id.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/util/server_id.c b/lib/util/server_id.c index ca998116bf4..e66c9791007 100644 --- a/lib/util/server_id.c +++ b/lib/util/server_id.c @@ -49,19 +49,8 @@ int server_id_cmp(const struct server_id *p1, const struct server_id *p2) bool server_id_equal(const struct server_id *p1, const struct server_id *p2) { - if (!server_id_same_process(p1, p2)) { - return false; - } - - if (p1->task_id != p2->task_id) { - return false; - } - - if (p1->unique_id != p2->unique_id) { - return false; - } - - return true; + int cmp = server_id_cmp(p1, p2); + return (cmp == 0); } char *server_id_str_buf(struct server_id id, struct server_id_buf *dst) |