gluon-radv-filterd: remove unneeded memset

This commit is contained in:
Matthias Schiffer 2020-07-02 00:10:29 +02:00
parent 9be7a5cad7
commit e384f899b7
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -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))