aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-17 12:16:08 +0200
committerBen Hutchings <ben@decadent.org.uk>2020-05-22 21:19:11 +0100
commita3c5d6639043dfc5d6ae515b6882dfb2aae6e36d (patch)
tree83da886728a924e28e39d981fb5131b71273762c
parentf358118d34cdd7e898685205bb62e41e9a3246aa (diff)
downloadlinux-stable-a3c5d6639043dfc5d6ae515b6882dfb2aae6e36d.tar.gz
padata: Remove unused but set variables
commit 119a0798dc42ed4c4f96d39b8b676efcea73aec6 upstream. Remove the unused but set variable pinst in padata_parallel_worker to fix the following warning when building with 'W=1': kernel/padata.c: In function ‘padata_parallel_worker’: kernel/padata.c:68:26: warning: variable ‘pinst’ set but not used [-Wunused-but-set-variable] Also remove the now unused variable pd which is only used to set pinst. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--kernel/padata.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/padata.c b/kernel/padata.c
index 9978b5712fce6..7aa321c9d23fe 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -63,15 +63,11 @@ static int padata_cpu_hash(struct parallel_data *pd)
static void padata_parallel_worker(struct work_struct *parallel_work)
{
struct padata_parallel_queue *pqueue;
- struct parallel_data *pd;
- struct padata_instance *pinst;
LIST_HEAD(local_list);
local_bh_disable();
pqueue = container_of(parallel_work,
struct padata_parallel_queue, work);
- pd = pqueue->pd;
- pinst = pd->pinst;
spin_lock(&pqueue->parallel.lock);
list_replace_init(&pqueue->parallel.list, &local_list);