X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fatm%2Flec.c;h=b005e1a5c3ae178bd22892679cc23eee8a3eeb86;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=a920b9246f080fd0a204ebd221373d043ae6a261;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/net/atm/lec.c b/net/atm/lec.c index a920b9246..b005e1a5c 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c @@ -1,6 +1,6 @@ /* * lec.c: Lan Emulation driver - * Marko Kiiskila mkiiskila@yahoo.com + * Marko Kiiskila carnil@cs.tut.fi * */ @@ -71,9 +71,9 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev); static int lec_close(struct net_device *dev); static struct net_device_stats *lec_get_stats(struct net_device *dev); static void lec_init(struct net_device *dev); -static struct lec_arp_table* lec_arp_find(struct lec_priv *priv, +static inline struct lec_arp_table* lec_arp_find(struct lec_priv *priv, unsigned char *mac_addr); -static int lec_arp_remove(struct lec_priv *priv, +static inline int lec_arp_remove(struct lec_priv *priv, struct lec_arp_table *to_remove); /* LANE2 functions */ static void lane2_associate_ind (struct net_device *dev, u8 *mac_address, @@ -567,7 +567,7 @@ lec_atm_close(struct atm_vcc *vcc) if (skb_peek(&vcc->sk->sk_receive_queue)) printk("%s lec_atm_close: closing with messages pending\n", dev->name); - while ((skb = skb_dequeue(&vcc->sk->sk_receive_queue)) != NULL) { + while ((skb = skb_dequeue(&vcc->sk->sk_receive_queue))) { atm_return(vcc, skb->truesize); dev_kfree_skb(skb); } @@ -1468,7 +1468,7 @@ lec_arp_add(struct lec_priv *priv, struct lec_arp_table *to_add) /* * Remove entry from lec_arp_table */ -static int +static inline int lec_arp_remove(struct lec_priv *priv, struct lec_arp_table *to_remove) { @@ -1755,7 +1755,7 @@ lec_arp_destroy(struct lec_priv *priv) /* * Find entry by mac_address */ -static struct lec_arp_table* +static inline struct lec_arp_table* lec_arp_find(struct lec_priv *priv, unsigned char *mac_addr) { @@ -1940,7 +1940,7 @@ lec_arp_check_expire(unsigned long data) priv->path_switching_delay)) { struct sk_buff *skb; - while ((skb = skb_dequeue(&entry->tx_wait)) != NULL) + while ((skb = skb_dequeue(&entry->tx_wait))) lec_send(entry->vcc, skb, entry->priv); entry->last_used = jiffies; entry->status = @@ -2337,7 +2337,7 @@ lec_flush_complete(struct lec_priv *priv, unsigned long tran_id) entry->status == ESI_FLUSH_PENDING) { struct sk_buff *skb; - while ((skb = skb_dequeue(&entry->tx_wait)) != NULL) + while ((skb = skb_dequeue(&entry->tx_wait))) lec_send(entry->vcc, skb, entry->priv); entry->status = ESI_FORWARD_DIRECT; DPRINTK("LEC_ARP: Flushed\n");