Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9328
b: refs/heads/master
c: bdcc66c
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Sep 22, 2005
1 parent 7532608 commit 63bd4a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: 1d67e6501b8dba54ef8dcabebe2ad049b8ad0d67
refs/heads/master: bdcc66cca89cc2e97e93054d139b2e9a2b2ec1a7
10 changes: 2 additions & 8 deletions trunk/net/llc/llc_c_ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@ int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb)
reason = LLC_DISC_REASON_RX_DISC_CMD_PDU;
} else if (ev->type == LLC_CONN_EV_TYPE_ACK_TMR)
reason = LLC_DISC_REASON_ACK_TMR_EXP;
else {
reason = 0;
else
rc = -EINVAL;
}
if (!rc) {
ev->reason = reason;
ev->ind_prim = LLC_DISC_PRIM;
Expand Down Expand Up @@ -160,9 +158,6 @@ int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb)
LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_SABME) {
reason = LLC_RESET_REASON_REMOTE;
rc = 0;
} else {
reason = 0;
rc = 1;
}
break;
case LLC_CONN_EV_TYPE_ACK_TMR:
Expand All @@ -172,8 +167,7 @@ int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb)
if (llc->retry_count > llc->n2) {
reason = LLC_RESET_REASON_LOCAL;
rc = 0;
} else
rc = 1;
}
break;
}
if (!rc) {
Expand Down

0 comments on commit 63bd4a7

Please sign in to comment.