From 7887fb5a2a10eb26b7aaa5f8cf3fd0282256854b Mon Sep 17 00:00:00 2001 From: Daniel Danzberger Date: Wed, 1 Apr 2020 15:58:06 +0200 Subject: [PATCH] tr181: bridging: Remove some unused variables Signed-off-by: Daniel Danzberger --- dmtree/tr181/bridging.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dmtree/tr181/bridging.c b/dmtree/tr181/bridging.c index da889851..8a2bd5a7 100644 --- a/dmtree/tr181/bridging.c +++ b/dmtree/tr181/bridging.c @@ -872,8 +872,9 @@ static int set_br_vlan_vid(char *refparam, struct dmctx *ctx, void *data, char * while (token != NULL) { char intf[50] = {0}; strncpy(intf, token, sizeof(intf) - 1); - char *tok, *tag; - tok = strtok_r(intf, ".", &tag); + char *tag; + + strtok_r(intf, ".", &tag); /* Remove all the config device section before setting the vlan id. */ if (tag != NULL ) { @@ -1250,8 +1251,8 @@ static int delete_br_vlanport(char *refparam, struct dmctx *ctx, void *data, cha char intf[250] = {0}; strncpy(intf, ifname, sizeof(intf) - 1); - char *tok, *tag; - tok = strtok_r(intf, ".", &tag); + char *tag; + strtok_r(intf, ".", &tag); if (tag != NULL) { /* Remove the tag in ifname from UCI file.*/ remove_ifname_from_uci(ifname, data, intf);