diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2013-03-09 10:58:13 +0100 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-09 11:01:06 +0100 | 
| commit | 83a44ac8bf4a8e6cbbf0c00ff281a482778f708a (patch) | |
| tree | 325be1e4d52372db888396549908f25c5370caee /net/unix/diag.c | |
| parent | 4ba25d3f87fe3ed6634f61da2a6904e2dfd09192 (diff) | |
| parent | d381f45c890a3fb136afb0dc1cbe025e066cb981 (diff) | |
HID: Merge branch 'master' into for-3.10/hid-driver-transport-cleanups
Sync with Linus' tree. This is necessary to resolve build conflict
caused by dcd9006b1b053c7b ("HID: logitech-dj: do not directly call
hid_output_raw_report() during probe") which issues direct call to
usbhid_submit_report(), but that is gone in this branch and
hid_hw_request() has to be used instead.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/unix/diag.c')
| -rw-r--r-- | net/unix/diag.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/net/unix/diag.c b/net/unix/diag.c index 5ac19dc1d5e..d591091603b 100644 --- a/net/unix/diag.c +++ b/net/unix/diag.c @@ -192,10 +192,9 @@ static int unix_diag_dump(struct sk_buff *skb, struct netlink_callback *cb)  	     slot < ARRAY_SIZE(unix_socket_table);  	     s_num = 0, slot++) {  		struct sock *sk; -		struct hlist_node *node;  		num = 0; -		sk_for_each(sk, node, &unix_socket_table[slot]) { +		sk_for_each(sk, &unix_socket_table[slot]) {  			if (!net_eq(sock_net(sk), net))  				continue;  			if (num < s_num) @@ -226,9 +225,7 @@ static struct sock *unix_lookup_by_ino(int ino)  	spin_lock(&unix_table_lock);  	for (i = 0; i < ARRAY_SIZE(unix_socket_table); i++) { -		struct hlist_node *node; - -		sk_for_each(sk, node, &unix_socket_table[i]) +		sk_for_each(sk, &unix_socket_table[i])  			if (ino == sock_i_ino(sk)) {  				sock_hold(sk);  				spin_unlock(&unix_table_lock);  | 
