From: Pavel Emelyanov Date: Fri, 31 Aug 2007 05:46:36 +0000 (-0700) Subject: [PKTGEN]: Remove write-only variable. X-Git-Tag: v4.13~35755^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=88282c6ecf0dacefda6090b0289d35e8a3cc6221;p=mirror_ubuntu-bionic-kernel.git [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 Acked-by: Sukadev Bhattiprolu Signed-off-by: David S. Miller --- 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 { /* Field for thread to receive "posted" events terminate, stop ifs etc. */ u32 control; - int pid; int cpu; wait_queue_head_t queue; @@ -3463,8 +3462,6 @@ static int pktgen_thread_worker(void *arg) init_waitqueue_head(&t->queue); - t->pid = current->pid; - pr_debug("pktgen: starting pktgen/%d: pid=%d\n", cpu, current->pid); max_before_softirq = t->max_before_softirq;