Commit 9fbef059 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

gre: fix sparse warning

Use be16 consistently when looking at flags.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 66dc81ec
...@@ -222,7 +222,7 @@ static struct rtnl_link_stats64 *ipgre_get_stats64(struct net_device *dev, ...@@ -222,7 +222,7 @@ static struct rtnl_link_stats64 *ipgre_get_stats64(struct net_device *dev,
/* Does key in tunnel parameters match packet */ /* Does key in tunnel parameters match packet */
static bool ipgre_key_match(const struct ip_tunnel_parm *p, static bool ipgre_key_match(const struct ip_tunnel_parm *p,
__u32 flags, __be32 key) __be16 flags, __be32 key)
{ {
if (p->i_flags & GRE_KEY) { if (p->i_flags & GRE_KEY) {
if (flags & GRE_KEY) if (flags & GRE_KEY)
...@@ -237,7 +237,7 @@ static bool ipgre_key_match(const struct ip_tunnel_parm *p, ...@@ -237,7 +237,7 @@ static bool ipgre_key_match(const struct ip_tunnel_parm *p,
static struct ip_tunnel *ipgre_tunnel_lookup(struct net_device *dev, static struct ip_tunnel *ipgre_tunnel_lookup(struct net_device *dev,
__be32 remote, __be32 local, __be32 remote, __be32 local,
__u32 flags, __be32 key, __be16 flags, __be32 key,
__be16 gre_proto) __be16 gre_proto)
{ {
struct net *net = dev_net(dev); struct net *net = dev_net(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment