From 9f6043bbdea03f4236c28e05b37ce7b9a4453d76 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Fri, 17 Sep 2021 19:52:52 +0200 Subject: [PATCH] Remove dead assignment. --- src/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg.c b/src/msg.c index a01f6ac..bc259c1 100644 --- a/src/msg.c +++ b/src/msg.c @@ -141,7 +141,7 @@ kore_msg_register(u_int8_t id, void (*cb)(struct kore_msg *, const void *)) { struct msg_type *type; - if ((type = msg_type_lookup(id)) != NULL) + if (msg_type_lookup(id) != NULL) return (KORE_RESULT_ERROR); type = kore_malloc(sizeof(*type));