From: Roopa Prabhu Date: Tue, 14 Mar 2017 06:04:48 +0000 (-0700) Subject: lwtunnel: remove unused but set variable X-Git-Tag: v4.14-rc1~960^3~443 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=942c56ad07d111714899ec4bfb32212a65f40ac5;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/core/lwtunnel.c b/net/core/lwtunnel.c index 6df9f8f..b588819 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) {