[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401023339-29712-1-git-send-email-manuel.schoelling@gmx.de>
Date: Sun, 25 May 2014 15:08:59 +0200
From: Manuel Schölling <manuel.schoelling@....de>
To: gregkh@...uxfoundation.org
Cc: peter.p.waskiewicz.jr@...el.com, kristina.martsenko@...il.com,
khoroshilov@...ras.ru, arnd@...db.de, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Manuel Schölling <manuel.schoelling@....de>
Subject: [PATCH] gdm72xx: use time_before()
To be future-proof and for better readability the time comparisons are
modified to use time_before() instead of plain, error-prone math.
Signed-off-by: Manuel Schölling <manuel.schoelling@....de>
---
drivers/staging/gdm72xx/gdm_usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm72xx/gdm_usb.c b/drivers/staging/gdm72xx/gdm_usb.c
index 20539d8..9ddf8f5 100644
--- a/drivers/staging/gdm72xx/gdm_usb.c
+++ b/drivers/staging/gdm72xx/gdm_usb.c
@@ -730,7 +730,7 @@ static int k_mode_thread(void *arg)
spin_unlock_irqrestore(&k_lock, flags2);
expire = jiffies + K_WAIT_TIME;
- while (jiffies < expire)
+ while (time_before(jiffies, expire))
schedule_timeout(K_WAIT_TIME);
spin_lock_irqsave(&rx->lock, flags);
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists