Commit 2a211849 authored by Tobias Klauser's avatar Tobias Klauser Committed by Khalid Elmously

padata: Remove unused but set variables

BugLink: https://bugs.launchpad.net/bugs/1883916

commit 119a0798 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: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent a06d2fa4
...@@ -65,15 +65,11 @@ static int padata_cpu_hash(struct parallel_data *pd) ...@@ -65,15 +65,11 @@ static int padata_cpu_hash(struct parallel_data *pd)
static void padata_parallel_worker(struct work_struct *parallel_work) static void padata_parallel_worker(struct work_struct *parallel_work)
{ {
struct padata_parallel_queue *pqueue; struct padata_parallel_queue *pqueue;
struct parallel_data *pd;
struct padata_instance *pinst;
LIST_HEAD(local_list); LIST_HEAD(local_list);
local_bh_disable(); local_bh_disable();
pqueue = container_of(parallel_work, pqueue = container_of(parallel_work,
struct padata_parallel_queue, work); struct padata_parallel_queue, work);
pd = pqueue->pd;
pinst = pd->pinst;
spin_lock(&pqueue->parallel.lock); spin_lock(&pqueue->parallel.lock);
list_replace_init(&pqueue->parallel.list, &local_list); list_replace_init(&pqueue->parallel.list, &local_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment