From a5b920670fc7fc796d2e45903ba4957563236670 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 24 Jul 2001 10:35:58 +0000 Subject: [PATCH] Remove s->do_lock, s->do_unlock --- comedi/kcomedilib/kcomedilib_main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index 688c830a..f22e7190 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -761,9 +761,6 @@ int comedi_lock(unsigned int minor,unsigned int subdev) }else{ __MOD_INC_USE_COUNT(dev->driver->module); s->lock=(void *)&rtcomedi_lock_semaphore; - - if(s->do_lock) - s->do_lock(dev,s); } return ret; @@ -808,9 +805,6 @@ int comedi_unlock(unsigned int minor,unsigned int subdev) if(s->lock && s->lock!=&rtcomedi_lock_semaphore) return -EACCES; - if(s->do_unlock) - s->do_unlock(dev,s); - if(s->lock==&rtcomedi_lock_semaphore){ s->lock=NULL; -- 2.26.2