patch-1.3.38 linux/drivers/sound/sscape.c
Next file: linux/fs/nfs/rpcsock.c
Previous file: linux/drivers/sound/soundvers.h
Back to the patch index
Back to the overall index
- Lines: 81
- Date:
Tue Nov 7 10:14:18 1995
- Orig file:
v1.3.37/linux/drivers/sound/sscape.c
- Orig date:
Mon Oct 23 18:02:17 1995
diff -u --recursive --new-file v1.3.37/linux/drivers/sound/sscape.c linux/drivers/sound/sscape.c
@@ -449,10 +449,7 @@
#endif
devc->dma_allocated = 0;
}
- {
- sscape_sleep_flag.aborting = 0;
- sscape_sleep_flag.mode = WK_NONE;
- };
+ sscape_sleep_flag.mode = WK_NONE;
restore_flags (flags);
return;
@@ -514,10 +511,7 @@
/*
* Wait until transfer completes.
*/
- {
- sscape_sleep_flag.aborting = 0;
- sscape_sleep_flag.mode = WK_NONE;
- };
+ sscape_sleep_flag.mode = WK_NONE;
done = 0;
timeout_val = 100;
while (!done && timeout_val-- > 0)
@@ -529,16 +523,14 @@
unsigned long tl;
if (1)
- tl = current->timeout = jiffies + (1);
+ current->timeout = tl = jiffies + (1);
else
tl = 0xffffffff;
sscape_sleep_flag.mode = WK_SLEEP;
interruptible_sleep_on (&sscape_sleeper);
if (!(sscape_sleep_flag.mode & WK_WAKEUP))
{
- if (current->signal & ~current->blocked)
- sscape_sleep_flag.aborting = 1;
- else if (jiffies >= tl)
+ if (jiffies >= tl)
sscape_sleep_flag.mode |= WK_TIMEOUT;
}
sscape_sleep_flag.mode &= ~WK_SLEEP;
@@ -579,16 +571,14 @@
unsigned long tl;
if (1)
- tl = current->timeout = jiffies + (1);
+ current->timeout = tl = jiffies + (1);
else
tl = 0xffffffff;
sscape_sleep_flag.mode = WK_SLEEP;
interruptible_sleep_on (&sscape_sleeper);
if (!(sscape_sleep_flag.mode & WK_WAKEUP))
{
- if (current->signal & ~current->blocked)
- sscape_sleep_flag.aborting = 1;
- else if (jiffies >= tl)
+ if (jiffies >= tl)
sscape_sleep_flag.mode |= WK_TIMEOUT;
}
sscape_sleep_flag.mode &= ~WK_SLEEP;
@@ -614,16 +604,14 @@
unsigned long tl;
if (1)
- tl = current->timeout = jiffies + (1);
+ current->timeout = tl = jiffies + (1);
else
tl = 0xffffffff;
sscape_sleep_flag.mode = WK_SLEEP;
interruptible_sleep_on (&sscape_sleeper);
if (!(sscape_sleep_flag.mode & WK_WAKEUP))
{
- if (current->signal & ~current->blocked)
- sscape_sleep_flag.aborting = 1;
- else if (jiffies >= tl)
+ if (jiffies >= tl)
sscape_sleep_flag.mode |= WK_TIMEOUT;
}
sscape_sleep_flag.mode &= ~WK_SLEEP;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this