Skip to content

Commit deb28d9

Browse files
mkatiyardavem330
authored andcommitted
net/802/fc.c: Fix compilation warnings
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ab55570 commit deb28d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/802/fc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ static int fc_header(struct sk_buff *skb, struct net_device *dev,
8282

8383
static int fc_rebuild_header(struct sk_buff *skb)
8484
{
85+
#ifdef CONFIG_INET
8586
struct fch_hdr *fch=(struct fch_hdr *)skb->data;
8687
struct fcllc *fcllc=(struct fcllc *)(skb->data+sizeof(struct fch_hdr));
8788
if(fcllc->ethertype != htons(ETH_P_IP)) {
8889
printk("fc_rebuild_header: Don't know how to resolve type %04X addresses ?\n", ntohs(fcllc->ethertype));
8990
return 0;
9091
}
91-
#ifdef CONFIG_INET
9292
return arp_find(fch->daddr, skb);
9393
#else
9494
return 0;

0 commit comments

Comments
 (0)