aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/i4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/gigaset/i4l.c')
-rw-r--r--drivers/isdn/gigaset/i4l.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/isdn/gigaset/i4l.c b/drivers/isdn/gigaset/i4l.c
index 1654fa413575..9e089f06a942 100644
--- a/drivers/isdn/gigaset/i4l.c
+++ b/drivers/isdn/gigaset/i4l.c
@@ -109,13 +109,9 @@ EXPORT_SYMBOL_GPL(gigaset_skb_sent);
109static int command_from_LL(isdn_ctrl *cntrl) 109static int command_from_LL(isdn_ctrl *cntrl)
110{ 110{
111 struct cardstate *cs = gigaset_get_cs_by_id(cntrl->driver); 111 struct cardstate *cs = gigaset_get_cs_by_id(cntrl->driver);
112 //isdn_ctrl response;
113 //unsigned long flags;
114 struct bc_state *bcs; 112 struct bc_state *bcs;
115 int retval = 0; 113 int retval = 0;
116 struct setup_parm *sp; 114 struct setup_parm *sp;
117 unsigned param;
118 unsigned long flags;
119 115
120 gigaset_debugdrivers(); 116 gigaset_debugdrivers();
121 117
@@ -162,12 +158,8 @@ static int command_from_LL(isdn_ctrl *cntrl)
162 } 158 }
163 *sp = cntrl->parm.setup; 159 *sp = cntrl->parm.setup;
164 160
165 spin_lock_irqsave(&cs->lock, flags); 161 if (!gigaset_add_event(cs, &bcs->at_state, EV_DIAL, sp,
166 param = bcs->at_state.seq_index; 162 bcs->at_state.seq_index, NULL)) {
167 spin_unlock_irqrestore(&cs->lock, flags);
168
169 if (!gigaset_add_event(cs, &bcs->at_state, EV_DIAL, sp, param,
170 NULL)) {
171 //FIXME what should we do? 163 //FIXME what should we do?
172 kfree(sp); 164 kfree(sp);
173 gigaset_free_channel(bcs); 165 gigaset_free_channel(bcs);