diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-08-31 01:46:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-08-31 01:46:36 -0400 |
commit | 88282c6ecf0dacefda6090b0289d35e8a3cc6221 (patch) | |
tree | a9679d3f2266598221d5282e6ccc390437c29c81 | |
parent | a289d70d74c39a8e6938619f967fc6cd70ce1798 (diff) |
[PKTGEN]: Remove write-only variable.
The pktgen_thread.pid is set to current->pid and is never used
after this. So remove this at all.
Found during isolating the explicit pid/tgid usage.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/pktgen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 4ad62d375373..36fdea71d742 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -380,7 +380,6 @@ struct pktgen_thread { | |||
380 | /* Field for thread to receive "posted" events terminate, stop ifs etc. */ | 380 | /* Field for thread to receive "posted" events terminate, stop ifs etc. */ |
381 | 381 | ||
382 | u32 control; | 382 | u32 control; |
383 | int pid; | ||
384 | int cpu; | 383 | int cpu; |
385 | 384 | ||
386 | wait_queue_head_t queue; | 385 | wait_queue_head_t queue; |
@@ -3463,8 +3462,6 @@ static int pktgen_thread_worker(void *arg) | |||
3463 | 3462 | ||
3464 | init_waitqueue_head(&t->queue); | 3463 | init_waitqueue_head(&t->queue); |
3465 | 3464 | ||
3466 | t->pid = current->pid; | ||
3467 | |||
3468 | pr_debug("pktgen: starting pktgen/%d: pid=%d\n", cpu, current->pid); | 3465 | pr_debug("pktgen: starting pktgen/%d: pid=%d\n", cpu, current->pid); |
3469 | 3466 | ||
3470 | max_before_softirq = t->max_before_softirq; | 3467 | max_before_softirq = t->max_before_softirq; |