]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/802/psnap.c
net: Rationalise email address: Network Specific Parts
[linux-2.6-omap-h63xx.git] / net / 802 / psnap.c
index ea46439314468e78f5a20539de38e123dc4cd5a9..70980baeb68297bdc629b27f8ea63f68b0a9e04a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     SNAP data link layer. Derived from 802.2
  *
- *             Alan Cox <Alan.Cox@linux.org>,
+ *             Alan Cox <alan@lxorguk.ukuu.org.uk>,
  *             from the 802.2 layer by Greg Page.
  *             Merged in additions from Greg Page's psnap.c.
  *
@@ -31,11 +31,9 @@ static struct llc_sap *snap_sap;
  */
 static struct datalink_proto *find_snap_client(unsigned char *desc)
 {
-       struct list_head *entry;
        struct datalink_proto *proto = NULL, *p;
 
-       list_for_each_rcu(entry, &snap_list) {
-               p = list_entry(entry, struct datalink_proto, node);
+       list_for_each_entry_rcu(p, &snap_list, node) {
                if (!memcmp(p->type, desc, 5)) {
                        proto = p;
                        break;