Skip to content

Commit

Permalink
gre: fix sparse warning
Browse files Browse the repository at this point in the history
Use be16 consistently when looking at flags.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Oct 1, 2012
1 parent 66dc81e commit 9fbef05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/ip_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static struct rtnl_link_stats64 *ipgre_get_stats64(struct net_device *dev,

/* Does key in tunnel parameters match packet */
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 (flags & GRE_KEY)
Expand All @@ -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,
__be32 remote, __be32 local,
__u32 flags, __be32 key,
__be16 flags, __be32 key,
__be16 gre_proto)
{
struct net *net = dev_net(dev);
Expand Down

0 comments on commit 9fbef05

Please sign in to comment.