mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-02 15:43:49 +01:00
tr181: bridging: Remove some unused variables
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
parent
4a83e648a7
commit
7887fb5a2a
1 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue