Skip to contentSkip to conversation

kernel/posix-timers.c: Fix unused variable

PATCH New Pavel Emelyanov 1 participant 1 message Apr 18, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 516f06a8.xFxNSO51jS+u5rc5%[email protected]

#1 lore raw

PATCH 1/1 kernel/posix-timers.c: Fix unused variable

The kbuild test robot detected unused variable introduced by commit 5ed67f05 (posix
timers: Allocate timer id per process (v2)).

kernel/posix-timers.c: In function '__posix_timers_find':
kernel/posix-timers.c:157:21: warning: unused variable 'node' [-Wunused-variable]

This var is just not needed.

---

kernel/posix-timers.c +0 -1
index 34d7592..424c2d4 100644
@@ -154,7 +154,6 @@ static struct k_itimer *__posix_timers_find(struct hlist_head *head,
 					    struct signal_struct *sig,
 					    timer_t id)
 {
-	struct hlist_node *node;
 	struct k_itimer *timer;
 
 	hlist_for_each_entry_rcu(timer, head, t_hash) {