Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247443
b: refs/heads/master
c: 9f6298a
h: refs/heads/master
i:
  247441: bf5faae
  247439: 5503941
v: v3
  • Loading branch information
Ursula Braun authored and David S. Miller committed May 13, 2011
1 parent 7de8c8f commit 2cfa8ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5db79c0679e542a156de54e97be8901aeaa7638a
refs/heads/master: 9f6298a6ca38e251aa72a6035a8a36a52cf94536
9 changes: 2 additions & 7 deletions trunk/net/iucv/af_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ static int afiucv_pm_freeze(struct device *dev)
*/
static int afiucv_pm_restore_thaw(struct device *dev)
{
struct iucv_sock *iucv;
struct sock *sk;
struct hlist_node *node;

Expand All @@ -199,7 +198,6 @@ static int afiucv_pm_restore_thaw(struct device *dev)
#endif
read_lock(&iucv_sk_list.lock);
sk_for_each(sk, node, &iucv_sk_list.head) {
iucv = iucv_sk(sk);
switch (sk->sk_state) {
case IUCV_CONNECTED:
sk->sk_err = EPIPE;
Expand Down Expand Up @@ -381,7 +379,6 @@ static void iucv_sock_close(struct sock *sk)
{
unsigned char user_data[16];
struct iucv_sock *iucv = iucv_sk(sk);
int err;
unsigned long timeo;

iucv_sock_clear_timer(sk);
Expand All @@ -394,8 +391,6 @@ static void iucv_sock_close(struct sock *sk)

case IUCV_CONNECTED:
case IUCV_DISCONN:
err = 0;

sk->sk_state = IUCV_CLOSING;
sk->sk_state_change(sk);

Expand All @@ -404,7 +399,7 @@ static void iucv_sock_close(struct sock *sk)
timeo = sk->sk_lingertime;
else
timeo = IUCV_DISCONN_TIMEOUT;
err = iucv_sock_wait(sk,
iucv_sock_wait(sk,
iucv_sock_in_state(sk, IUCV_CLOSED, 0),
timeo);
}
Expand All @@ -417,7 +412,7 @@ static void iucv_sock_close(struct sock *sk)
low_nmcpy(user_data, iucv->src_name);
high_nmcpy(user_data, iucv->dst_name);
ASCEBC(user_data, sizeof(user_data));
err = iucv_path_sever(iucv->path, user_data);
iucv_path_sever(iucv->path, user_data);
iucv_path_free(iucv->path);
iucv->path = NULL;
}
Expand Down

0 comments on commit 2cfa8ec

Please sign in to comment.