summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mhi/mhi_socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mhi/mhi_socket.c b/net/mhi/mhi_socket.c
index 7d8f1bacbee4..232d67381eea 100644
--- a/net/mhi/mhi_socket.c
+++ b/net/mhi/mhi_socket.c
@@ -148,7 +148,6 @@ int mhi_sock_rcv_unicast(
u8 l3proto,
u32 l3length)
{
- struct hlist_node *hnode;
struct sock *sknode;
struct mhi_sock *msk;
@@ -156,7 +155,7 @@ int mhi_sock_rcv_unicast(
spin_lock(&mhi_sock_lock);
{
- sk_for_each(sknode, hnode, &mhi_sock_list) {
+ sk_for_each(sknode, &mhi_sock_list) {
msk = mhi_sk(sknode);
if ((msk->sk_l3proto == MHI_L3_ANY ||
msk->sk_l3proto == l3proto) &&
@@ -181,7 +180,6 @@ int mhi_sock_rcv_multicast(
u8 l3proto,
u32 l3length)
{
- struct hlist_node *hnode;
struct sock *sknode;
struct mhi_sock *msk;
struct sk_buff *clone;
@@ -190,7 +188,7 @@ int mhi_sock_rcv_multicast(
spin_lock(&mhi_sock_lock);
{
- sk_for_each(sknode, hnode, &mhi_sock_list) {
+ sk_for_each(sknode, &mhi_sock_list) {
msk = mhi_sk(sknode);
if ((msk->sk_l3proto == MHI_L3_ANY ||
msk->sk_l3proto == l3proto) &&