From: Frank Mori Hess Date: Fri, 29 Mar 2002 22:49:47 +0000 (+0000) Subject: removed some ineffectual locking I put in a long time ago when I was young X-Git-Tag: r0_7_64~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e451fe20d1f1cfadee0a6496741e227f2ca2c53b;p=comedi.git removed some ineffectual locking I put in a long time ago when I was young and naive. --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index f708fac5..da95d598 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -432,8 +432,6 @@ static int do_bufinfo_ioctl(comedi_device *dev,void *arg) comedi_bufinfo bi; comedi_subdevice *s; comedi_async *async; - static spinlock_t bufinfo_lock = SPIN_LOCK_UNLOCKED; - unsigned long irq_flags; int m; if(copy_from_user(&bi,arg, sizeof(comedi_bufinfo))) @@ -479,11 +477,9 @@ static int do_bufinfo_ioctl(comedi_device *dev,void *arg) do_become_nonbusy(dev,s); } } - - comedi_spin_lock_irqsave(&bufinfo_lock, irq_flags); bi.buf_int_count = async->buf_int_count; + // XXX why why report the pointer values, they are useless to the user bi.buf_int_ptr = async->buf_int_ptr; - comedi_spin_unlock_irqrestore(&bufinfo_lock, irq_flags); bi.buf_user_count = async->buf_user_count; bi.buf_user_ptr = async->buf_user_ptr;