changed declaration of bufinfo spinlock to static. This doesn't actually matter,
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 5 Jul 2001 16:01:18 +0000 (16:01 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 5 Jul 2001 16:01:18 +0000 (16:01 +0000)
since it is only there to prevent interrupts, but makes the code look less buggy.

comedi/comedi_fops.c

index bf39580052cd218ad234b2cb701d101bf4f6f5d3..fcef9945a7f6d5d699c9572e5fa9424dfaa91d83 100644 (file)
@@ -476,7 +476,7 @@ static int do_bufinfo_ioctl(comedi_device *dev,void *arg)
        comedi_bufinfo bi;
        comedi_subdevice *s;
        comedi_async *async;
-       spinlock_t bufinfo_lock = SPIN_LOCK_UNLOCKED;
+       static spinlock_t bufinfo_lock = SPIN_LOCK_UNLOCKED;
        unsigned long irq_flags;
        int m;