mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laurent Navet <laurent.navet@gmail.com>
To: mchehab@osg.samsung.com
Cc: shuah.kh@samsung.com, crope@iki.fi, stefanr@s5r6.in-berlin.de,
	tskd08@gmail.com, ruchandani.tina@gmail.com,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Laurent Navet <laurent.navet@gmail.com>
Subject: [PATCH] [media] dvb-core: remove ktime_add_us() call
Date: Wed,  8 Jul 2015 21:16:24 +0200	[thread overview]
Message-ID: <1436382984-11947-1-git-send-email-laurent.navet@gmail.com> (raw)

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@gmail.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


                 reply	other threads:[~2015-07-08 19:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1436382984-11947-1-git-send-email-laurent.navet@gmail.com \
    --to=laurent.navet@gmail.com \
    --cc=crope@iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@osg.samsung.com \
    --cc=ruchandani.tina@gmail.com \
    --cc=shuah.kh@samsung.com \
    --cc=stefanr@s5r6.in-berlin.de \
    --cc=tskd08@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®