diff options
Diffstat (limited to 'drivers/dahdi/voicebus/GpakCust.c')
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c index 74c3304..11453fc 100644 --- a/drivers/dahdi/voicebus/GpakCust.c +++ b/drivers/dahdi/voicebus/GpakCust.c @@ -32,7 +32,6 @@ #include <linux/version.h> #include <linux/types.h> -#include <linux/delay.h> #include <linux/pci.h> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) #include <linux/semaphore.h> @@ -900,11 +899,11 @@ void gpakLockAccess(unsigned short DspId) vpm = find_iface(DspId); - if (vpm) { - if (down_interruptible(&vpm->sem)) { - return; - } - } + if (!vpm) + return; + + down(&vpm->sem); + return; } |