Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1c0d6dcf885badc72f72bfba9bc5b4f1469b8501
Commit:     1c0d6dcf885badc72f72bfba9bc5b4f1469b8501
Parent:     693aa9470d8273a0ded8b211a8f5f7c0835adf30
Author:     Shani Moideen <[EMAIL PROTECTED]>
AuthorDate: Sat Apr 28 11:05:43 2007 -0400
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Sat Apr 28 11:05:43 2007 -0400

    [netdrvr] eexpress: minor corrections
    
    A few corrections related to time_after and time_before in
    drivers/net/eexpress.c as suggested by Marcin slusarz.
    
    Signed-off-by: Shani Moideen <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/eexpress.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c
index 2600e2c..7934ea3 100644
--- a/drivers/net/eexpress.c
+++ b/drivers/net/eexpress.c
@@ -777,7 +777,7 @@ static unsigned short eexp_start_irq(struct net_device *dev,
 static void eexp_cmd_clear(struct net_device *dev)
 {
        unsigned long int oldtime = jiffies;
-       while (scb_rdcmd(dev) && ((jiffies-oldtime)<10));
+       while (scb_rdcmd(dev) && (time_before(jiffies, oldtime + 10)));
        if (scb_rdcmd(dev)) {
                printk("%s: command didn't clear\n", dev->name);
        }
@@ -1650,7 +1650,7 @@ eexp_set_multicast(struct net_device *dev)
 #endif
                 oj = jiffies;
                 while ((SCB_CUstat(scb_status(dev)) == 2) &&
-                       (time_after(jiffies, oj + 2000)));
+                       (time_before(jiffies, oj + 2000)));
                if (SCB_CUstat(scb_status(dev)) == 2)
                        printk("%s: warning, CU didn't stop\n", dev->name);
                 lp->started &= ~(STARTED_CU);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to