aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/tda8083.c
diff options
context:
space:
mode:
authorGravatar Wang Qing <wangqing@vivo.com> 2022-02-14 17:55:48 -0800
committerGravatar Hans Verkuil <hverkuil-cisco@xs4all.nl> 2022-02-22 09:41:12 +0100
commit39878a5959547ed3fbf03804b4e929feae334432 (patch)
treee40c435866172d1db6be9ef4a608313b9c61cd60 /drivers/media/dvb-frontends/tda8083.c
parentmedia: stv0299: use time_is_before_jiffies() instead of open coding it (diff)
downloadlinux-39878a5959547ed3fbf03804b4e929feae334432.tar.gz
linux-39878a5959547ed3fbf03804b4e929feae334432.tar.bz2
linux-39878a5959547ed3fbf03804b4e929feae334432.zip
media: tda8083: use time_is_after_jiffies() instead of open coding it
Use the helper function time_is_{before,after}_jiffies() to improve code readability. Signed-off-by: Wang Qing <wangqing@vivo.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/dvb-frontends/tda8083.c')
-rw-r--r--drivers/media/dvb-frontends/tda8083.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/tda8083.c b/drivers/media/dvb-frontends/tda8083.c
index 5be11fd65e3b..e3e1c3db2c85 100644
--- a/drivers/media/dvb-frontends/tda8083.c
+++ b/drivers/media/dvb-frontends/tda8083.c
@@ -162,7 +162,7 @@ static void tda8083_wait_diseqc_fifo (struct tda8083_state* state, int timeout)
{
unsigned long start = jiffies;
- while (jiffies - start < timeout &&
+ while (time_is_after_jiffies(start + timeout) &&
!(tda8083_readreg(state, 0x02) & 0x80))
{
msleep(50);