]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
padata: Remove unused but set variables
authorTobias Klauser <tklauser@distanz.ch>
Mon, 17 Oct 2016 10:16:08 +0000 (12:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 14:41:37 +0000 (16:41 +0200)
commitc4c5322aa67da57585f68fc2c04f8b6484914947
treec018d0c91e422a404aa68291862086eba9b34873
parent0b3bc1fbff6f92674ed6e4007710fbd8eb58e182
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>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/padata.c