From e384f899b70e3b84d8ba94bd63f26c67c72d8788 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 2 Jul 2020 00:10:29 +0200 Subject: [PATCH] gluon-radv-filterd: remove unneeded memset --- package/gluon-radv-filterd/src/gluon-radv-filterd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/gluon-radv-filterd/src/gluon-radv-filterd.c b/package/gluon-radv-filterd/src/gluon-radv-filterd.c index ed090c46..e411d8bf 100644 --- a/package/gluon-radv-filterd/src/gluon-radv-filterd.c +++ b/package/gluon-radv-filterd/src/gluon-radv-filterd.c @@ -559,14 +559,13 @@ static int parse_tt_local(struct nl_msg *msg, } static void update_tqs(void) { + static const struct ether_addr unspec = {}; struct router *router; bool update_originators = false; - struct ether_addr unspec; struct batadv_nlquery_opts opts; int ret; // reset TQs - memset(&unspec, 0, sizeof(unspec)); foreach(router, G.routers) { router->tq = 0; if (ether_addr_equal(router->originator, unspec))