summaryrefslogtreecommitdiff
path: root/net/phonet
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@nvidia.com>2013-07-31 23:25:16 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:18:04 -0700
commita987948d10552b039ba769e530f4550a4e360fa9 (patch)
tree3797f5295d64af00b59df5a9c1dd112d2a188acd /net/phonet
parentedb4f6d4d60a6789062b416e1271ff0426971fc0 (diff)
fixup! net: phonet: Modifications for RMC PegaPCI. * As submitted by RMC for modem support *
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'net/phonet')
-rw-r--r--net/phonet/socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index 99f5be65cc78..88d756b8908e 100644
--- a/net/phonet/socket.c
+++ b/net/phonet/socket.c
@@ -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))