Skip to contentSkip to conversation

hrtimer: Remove unused variables in ktime_divns()

PATCH Applied Carlos R. Mafra 2 participants 2 messages May 22, 2008 – May 27, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hrtimer: Remove unused variables in ktime_divns()

The variables dns and inc are not used, remove them.

---
 kernel/hrtimer.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
kernel/hrtimer.c +2 -3
index 421be5f..001cac2 100644
@@ -300,11 +300,10 @@ EXPORT_SYMBOL_GPL(ktime_sub_ns);
  */
 u64 ktime_divns(const ktime_t kt, s64 div)
 {
-	u64 dclc, inc, dns;
+	u64 dclc;
 	int sft = 0;
 
-	dclc = dns = ktime_to_ns(kt);
-	inc = div;
+	dclc = ktime_to_ns(kt);
 	/* Make sure the divisor is less than 2^32: */
 	while (div >> 32) {
 		sft++;
Signature · 1 line
1.5.5.GIT
#1 lore raw
Quoted 1 line · Carlos R. Mafra

The variables dns and inc are not used, remove them.

Applied. Thanks,

tglx