aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/bas-gigaset.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/gigaset/bas-gigaset.c')
-rw-r--r--drivers/isdn/gigaset/bas-gigaset.c9
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 */
1937static int gigaset_chars_in_buffer(struct cardstate *cs) 1937static 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