tc: m_action: Drop unused variable nladdr in tc_action_gd()
This has been there since the introduction of tc/m_action.c back in 2004 and was apparently never in use. Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
a0a73b298a
commit
5f6a467f59
|
|
@ -386,7 +386,6 @@ static int tc_action_gd(int cmd, unsigned int flags, int *argc_p, char ***argv_p
|
|||
int prio = 0;
|
||||
int ret = 0;
|
||||
__u32 i;
|
||||
struct sockaddr_nl nladdr;
|
||||
struct rtattr *tail;
|
||||
struct rtattr *tail2;
|
||||
struct nlmsghdr *ans = NULL;
|
||||
|
|
@ -405,9 +404,6 @@ static int tc_action_gd(int cmd, unsigned int flags, int *argc_p, char ***argv_p
|
|||
.buf = { 0 }
|
||||
};
|
||||
|
||||
memset(&nladdr, 0, sizeof(nladdr));
|
||||
nladdr.nl_family = AF_NETLINK;
|
||||
|
||||
argc -= 1;
|
||||
argv += 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue