[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1436382984-11947-1-git-send-email-laurent.navet@gmail.com>
Date: Wed, 8 Jul 2015 21:16:24 +0200
From: Laurent Navet <laurent.navet@...il.com>
To: mchehab@....samsung.com
Cc: shuah.kh@...sung.com, crope@....fi, stefanr@...6.in-berlin.de,
tskd08@...il.com, ruchandani.tina@...il.com,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Laurent Navet <laurent.navet@...il.com>
Subject: [PATCH] [media] dvb-core: remove ktime_add_us() call
Calling ktime_add_us() seems useless as is only useful for it's return
value which is ignored.
Also fix coverity CID 1309761.
Signed-off-by: Laurent Navet <laurent.navet@...il.com>
---
drivers/media/dvb-core/dvb_frontend.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index 842b9c8..4205628 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -901,7 +901,6 @@ void dvb_frontend_sleep_until(ktime_t *waketime, u32 add_usec)
{
s32 delta, newdelta;
- ktime_add_us(*waketime, add_usec);
delta = ktime_us_delta(ktime_get_real(), *waketime);
if (delta > 2500) {
msleep((delta - 1500) / 1000);
--
2.1.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