patch-2.4.19 linux-2.4.19/drivers/usb/serial/digi_acceleport.c
Next file: linux-2.4.19/drivers/usb/serial/ftdi_sio.c
Previous file: linux-2.4.19/drivers/usb/serial/cyberjack.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/drivers/usb/serial/digi_acceleport.c
- Orig date:
Wed Oct 10 23:42:47 2001
diff -urN linux-2.4.18/drivers/usb/serial/digi_acceleport.c linux-2.4.19/drivers/usb/serial/digi_acceleport.c
@@ -734,7 +734,7 @@
while( count > 0 && ret == 0 ) {
while( (port->write_urb->status == -EINPROGRESS
- || priv->dp_write_urb_in_use) && jiffies < timeout ) {
+ || priv->dp_write_urb_in_use) && time_before(jiffies, timeout)) {
cond_wait_interruptible_timeout_irqrestore(
&port->write_wait, DIGI_RETRY_TIMEOUT,
&priv->dp_port_lock, flags );
@@ -899,7 +899,7 @@
spin_lock_irqsave( &priv->dp_port_lock, flags );
- while( jiffies < timeout && !priv->dp_transmit_idle ) {
+ while( time_before(jiffies, timeout) && !priv->dp_transmit_idle ) {
cond_wait_interruptible_timeout_irqrestore(
&priv->dp_transmit_idle_wait, DIGI_RETRY_TIMEOUT,
&priv->dp_port_lock, flags );
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)