From: Tobias Klauser Date: Mon, 17 Oct 2016 10:16:08 +0000 (+0200) Subject: padata: Remove unused but set variables X-Git-Tag: v4.9.225~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4c5322aa67da57585f68fc2c04f8b6484914947;p=platform%2Fkernel%2Flinux-amlogic.git 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 Acked-by: Steffen Klassert Signed-off-by: Herbert Xu Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/padata.c b/kernel/padata.c index 6939111b3cbe..408f58c4565a 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -66,15 +66,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);