padata: Remove unused but set variables
Subsystems (2)
PATCH 1/1 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.
--- kernel/padata.c | 4 ---- 1 file changed, 4 deletions(-)
kernel/padata.c +0 -4
@@ -64,15 +64,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);
Signature · 1 line
2.9.0
Quoted 9 lines · Tobias Klauser
Remove the unused but set variable pinst in
padata_parallel_workerto 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 <[email protected]>
Thanks!
Herbert Xu
maintainerQuoted 4 lines · Steffen Klassert
Quoted 3 lines · Tobias Klauser
Remove the unused but set variable pinst in
padata_parallel_workerto fix the following warning when building with 'W=1':
Quoted 8 lines
Quoted 6 lines
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 <[email protected]>Acked-by Steffen Klassert <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt