aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/proc.c
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2007-10-16 04:27:50 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:10 -0400
commit4d1ff582246de67b15e3cd2427a39875943ae895 (patch)
tree659e1afb58fbaaf9ed70a830cb6fc6f69398d6e6 /drivers/isdn/gigaset/proc.c
parentf438d914b220051d4cbc65cbc5d98e163c85c93b (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/proc.c')
-rw-r--r--drivers/isdn/gigaset/proc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/isdn/gigaset/proc.c b/drivers/isdn/gigaset/proc.c
index e767afa55abf..da6f3acf9fd0 100644
--- a/drivers/isdn/gigaset/proc.c
+++ b/drivers/isdn/gigaset/proc.c
@@ -19,15 +19,9 @@
19static ssize_t show_cidmode(struct device *dev, 19static ssize_t show_cidmode(struct device *dev,
20 struct device_attribute *attr, char *buf) 20 struct device_attribute *attr, char *buf)
21{ 21{
22 int ret;
23 unsigned long flags;
24 struct cardstate *cs = dev_get_drvdata(dev); 22 struct cardstate *cs = dev_get_drvdata(dev);
25 23
26 spin_lock_irqsave(&cs->lock, flags); 24 return sprintf(buf, "%u\n", cs->cidmode);
27 ret = sprintf(buf, "%u\n", cs->cidmode);
28 spin_unlock_irqrestore(&cs->lock, flags);
29
30 return ret;
31} 25}
32 26
33static ssize_t set_cidmode(struct device *dev, struct device_attribute *attr, 27static ssize_t set_cidmode(struct device *dev, struct device_attribute *attr,