diff options
author | Wang Qing <wangqing@vivo.com> | 2022-02-14 17:55:48 -0800 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-02-22 09:41:12 +0100 |
commit | 39878a5959547ed3fbf03804b4e929feae334432 (patch) | |
tree | e40c435866172d1db6be9ef4a608313b9c61cd60 /drivers/media/dvb-frontends/tda8083.c | |
parent | 0ce32a2ce347d70651d4089b1732003da7f19cc3 (diff) | |
download | linux-stable-39878a5959547ed3fbf03804b4e929feae334432.tar.gz linux-stable-39878a5959547ed3fbf03804b4e929feae334432.tar.bz2 linux-stable-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.c | 2 |
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); |