diff options
author | Tilman Schmidt <tilman@imap.cc> | 2007-10-16 04:27:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:10 -0400 |
commit | 4d1ff582246de67b15e3cd2427a39875943ae895 (patch) | |
tree | 659e1afb58fbaaf9ed70a830cb6fc6f69398d6e6 /drivers/isdn/gigaset/i4l.c | |
parent | f438d914b220051d4cbc65cbc5d98e163c85c93b (diff) |
gigaset: remove pointless locking
Remove pointless taking of spinlock around reading a single pointer-sized
or smaller variable.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/gigaset/i4l.c')
-rw-r--r-- | drivers/isdn/gigaset/i4l.c | 12 |
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); | |||
109 | static int command_from_LL(isdn_ctrl *cntrl) | 109 | static 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); |