diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2017-03-13 23:04:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-13 23:55:45 -0700 |
commit | 942c56ad07d111714899ec4bfb32212a65f40ac5 (patch) | |
tree | 423fef64983f73d73fc2f0a51a7ed6ff92d00dac | |
parent | 92cd12c5ed432c5eebd2462d666772a8d8442c3b (diff) | |
download | linux-942c56ad07d111714899ec4bfb32212a65f40ac5.tar.gz linux-942c56ad07d111714899ec4bfb32212a65f40ac5.tar.xz |
lwtunnel: remove unused but set variable
silences the below warning:
net/core/lwtunnel.c: In function ‘lwtunnel_valid_encap_type_attr’:
net/core/lwtunnel.c:165:17: warning: variable ‘nla’ set but not used
[-Wunused-but-set-variable]
Fixes: 9ed59592e3e3 ("lwtunnel: fix autoload of lwt modules")
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/lwtunnel.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/lwtunnel.c b/net/core/lwtunnel.c index 6df9f8fabf0c..b5888190223c 100644 --- a/net/core/lwtunnel.c +++ b/net/core/lwtunnel.c @@ -162,7 +162,6 @@ int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining) struct rtnexthop *rtnh = (struct rtnexthop *)attr; struct nlattr *nla_entype; struct nlattr *attrs; - struct nlattr *nla; u16 encap_type; int attrlen; @@ -170,7 +169,6 @@ int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining) attrlen = rtnh_attrlen(rtnh); if (attrlen > 0) { attrs = rtnh_attrs(rtnh); - nla = nla_find(attrs, attrlen, RTA_ENCAP); nla_entype = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); if (nla_entype) { |