Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78f150bf authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller
Browse files

[ROSE]: Trivial compilation CONFIG_INET=n case



The rose_rebuild_header() consists only of some variables in
case INET=n, and gcc will warn us about it.

Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4ac63ad6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}