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/bas-gigaset.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/bas-gigaset.c')
-rw-r--r-- | drivers/isdn/gigaset/bas-gigaset.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/isdn/gigaset/bas-gigaset.c b/drivers/isdn/gigaset/bas-gigaset.c index 00e31609a238..af7648274b38 100644 --- a/drivers/isdn/gigaset/bas-gigaset.c +++ b/drivers/isdn/gigaset/bas-gigaset.c | |||
@@ -1936,14 +1936,7 @@ static int gigaset_write_room(struct cardstate *cs) | |||
1936 | */ | 1936 | */ |
1937 | static int gigaset_chars_in_buffer(struct cardstate *cs) | 1937 | static int gigaset_chars_in_buffer(struct cardstate *cs) |
1938 | { | 1938 | { |
1939 | unsigned long flags; | 1939 | return cs->cmdbytes; |
1940 | unsigned bytes; | ||
1941 | |||
1942 | spin_lock_irqsave(&cs->cmdlock, flags); | ||
1943 | bytes = cs->cmdbytes; | ||
1944 | spin_unlock_irqrestore(&cs->cmdlock, flags); | ||
1945 | |||
1946 | return bytes; | ||
1947 | } | 1940 | } |
1948 | 1941 | ||
1949 | /* gigaset_brkchars | 1942 | /* gigaset_brkchars |