Skip to content

Commit 119a079

Browse files
tklauserherbertx
authored andcommitted
padata: Remove unused but set variables
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>
1 parent 3cf7996 commit 119a079

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎kernel/padata.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,11 @@ static int padata_cpu_hash(struct parallel_data *pd)
6464
static void padata_parallel_worker(struct work_struct *parallel_work)
6565
{
6666
struct padata_parallel_queue *pqueue;
67-
struct parallel_data *pd;
68-
struct padata_instance *pinst;
6967
LIST_HEAD(local_list);
7068

7169
local_bh_disable();
7270
pqueue = container_of(parallel_work,
7371
struct padata_parallel_queue, work);
74-
pd = pqueue->pd;
75-
pinst = pd->pinst;
7672

7773
spin_lock(&pqueue->parallel.lock);
7874
list_replace_init(&pqueue->parallel.list, &local_list);

0 commit comments

Comments
 (0)