commit 9f6043bbdea03f4236c28e05b37ce7b9a4453d76
parent bcfb79a389b6bc7689fc6e3d1ec2f3035231870a
Author: Joris Vink <joris@coders.se>
Date: Fri, 17 Sep 2021 19:52:52 +0200
Remove dead assignment.
Diffstat:
src/msg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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));