fixup! net: phonet: Modifications for RMC PegaPCI. * As submitted by RMC for modem...
Dan Willemsen [Thu, 1 Aug 2013 06:25:16 +0000 (23:25 -0700)]
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

net/phonet/socket.c

index 99f5be6..88d756b 100644 (file)
@@ -77,7 +77,6 @@ static struct hlist_head *pn_hash_list(u16 obj)
 struct sock *pn_find_sock_by_sa_and_skb(struct net *net,
                        const struct sockaddr_pn *spn, struct sk_buff *skb)
 {
-       struct hlist_node *node;
        struct sock *sknode;
        struct sock *rval = NULL;
        u16 obj = pn_sockaddr_get_object(spn);
@@ -90,7 +89,7 @@ struct sock *pn_find_sock_by_sa_and_skb(struct net *net,
        rcu_read_lock();
 
        for (h = 0; h < PN_HASHSIZE; h++) {
-               sk_for_each_rcu(sknode, node, hlist) {
+               sk_for_each_rcu(sknode, hlist) {
                        struct pn_sock *pn = pn_sk(sknode);
                        BUG_ON(!pn->sobject); /* unbound socket */
                        if (!net_eq(sock_net(sknode), net))