Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203410
b: refs/heads/master
c: 7d060ed
h: refs/heads/master
v: v3
  • Loading branch information
Tilman Schmidt authored and David S. Miller committed Jul 7, 2010
1 parent dd81711 commit 3624328
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 0cae6efdd7633624d8ecdec97a1d9e5a2a73352f
refs/heads/master: 7d060ed2877ff6d00e7238226edbaf91493d6d0b
16 changes: 8 additions & 8 deletions trunk/drivers/isdn/gigaset/capi.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,13 @@ void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *dskb)
++bcs->trans_up;

if (!ap) {
dev_err(cs->dev, "%s: no application\n", __func__);
gig_dbg(DEBUG_MCMD, "%s: application gone", __func__);
return;
}

/* don't send further B3 messages if disconnected */
if (bcs->apconnstate < APCONN_ACTIVE) {
gig_dbg(DEBUG_MCMD, "disconnected, discarding ack");
gig_dbg(DEBUG_MCMD, "%s: disconnected", __func__);
return;
}

Expand Down Expand Up @@ -427,13 +427,14 @@ void gigaset_skb_rcvd(struct bc_state *bcs, struct sk_buff *skb)
bcs->trans_down++;

if (!ap) {
dev_err(cs->dev, "%s: no application\n", __func__);
gig_dbg(DEBUG_MCMD, "%s: application gone", __func__);
dev_kfree_skb_any(skb);
return;
}

/* don't send further B3 messages if disconnected */
if (bcs->apconnstate < APCONN_ACTIVE) {
gig_dbg(DEBUG_MCMD, "disconnected, discarding data");
gig_dbg(DEBUG_MCMD, "%s: disconnected", __func__);
dev_kfree_skb_any(skb);
return;
}
Expand Down Expand Up @@ -752,7 +753,7 @@ void gigaset_isdn_connD(struct bc_state *bcs)
ap = bcs->ap;
if (!ap) {
spin_unlock_irqrestore(&bcs->aplock, flags);
dev_err(cs->dev, "%s: no application\n", __func__);
gig_dbg(DEBUG_CMD, "%s: application gone", __func__);
return;
}
if (bcs->apconnstate == APCONN_NONE) {
Expand Down Expand Up @@ -848,7 +849,7 @@ void gigaset_isdn_connB(struct bc_state *bcs)
ap = bcs->ap;
if (!ap) {
spin_unlock_irqrestore(&bcs->aplock, flags);
dev_err(cs->dev, "%s: no application\n", __func__);
gig_dbg(DEBUG_CMD, "%s: application gone", __func__);
return;
}
if (!bcs->apconnstate) {
Expand Down Expand Up @@ -906,13 +907,12 @@ void gigaset_isdn_connB(struct bc_state *bcs)
*/
void gigaset_isdn_hupB(struct bc_state *bcs)
{
struct cardstate *cs = bcs->cs;
struct gigaset_capi_appl *ap = bcs->ap;

/* ToDo: assure order of DISCONNECT_B3_IND and DISCONNECT_IND ? */

if (!ap) {
dev_err(cs->dev, "%s: no application\n", __func__);
gig_dbg(DEBUG_CMD, "%s: application gone", __func__);
return;
}

Expand Down

0 comments on commit 3624328

Please sign in to comment.