Skip to content

Commit

Permalink
[ROSE]: Trivial compilation CONFIG_INET=n case
Browse files Browse the repository at this point in the history
The rose_rebuild_header() consists only of some variables in
case INET=n, and gcc will warn us about it.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
xemul authored and David S. Miller committed Dec 5, 2007
1 parent 4ac63ad commit 78f150b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rose/rose_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ static int rose_header(struct sk_buff *skb, struct net_device *dev,

static int rose_rebuild_header(struct sk_buff *skb)
{
#ifdef CONFIG_INET
struct net_device *dev = skb->dev;
struct net_device_stats *stats = netdev_priv(dev);
unsigned char *bp = (unsigned char *)skb->data;
struct sk_buff *skbn;
unsigned int len;

#ifdef CONFIG_INET
if (arp_find(bp + 7, skb)) {
return 1;
}
Expand Down

0 comments on commit 78f150b

Please sign in to comment.